mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG: Right click on LeftAndMain menu caused CMS preview window to open
The onclick event for LeftAndMain menu links didn't check if the click was left or right, meaning that right click events could trigger the function for loading split view mode in some browser/os combinations.
This commit is contained in:
parent
f72a024af5
commit
4388433583
@ -168,7 +168,8 @@ jQuery.noConflict();
|
||||
* Ensure the user can see the requested section - restore the default view.
|
||||
*/
|
||||
'from .cms-menu-list li a': {
|
||||
onclick: function() {
|
||||
onclick: function(e) {
|
||||
if(e.which > 1) return;
|
||||
this.splitViewMode();
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user