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:
Loz Calver 2012-12-18 10:44:12 +00:00
parent f72a024af5
commit 4388433583

View File

@ -168,7 +168,8 @@ jQuery.noConflict();
* Ensure the user can see the requested section - restore the default view. * Ensure the user can see the requested section - restore the default view.
*/ */
'from .cms-menu-list li a': { 'from .cms-menu-list li a': {
onclick: function() { onclick: function(e) {
if(e.which > 1) return;
this.splitViewMode(); this.splitViewMode();
} }
}, },