mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Prevent opening preview when clicking the link for current page again
This commit is contained in:
parent
1fef42681a
commit
9a1ccd8a67
@ -169,7 +169,8 @@ jQuery.noConflict();
|
|||||||
*/
|
*/
|
||||||
'from .cms-menu-list li a': {
|
'from .cms-menu-list li a': {
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
if(e.which > 1) return;
|
var href = $(e.target).attr('href');
|
||||||
|
if(e.which > 1 || href == this._tabStateUrl()) return;
|
||||||
this.splitViewMode();
|
this.splitViewMode();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user