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