Permalink
Browse files

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.
  • Loading branch information...
1 parent f72a024 commit 43884335831c04f99a3417fb9fe36b29383cd363 @kinglozzer kinglozzer committed Dec 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 admin/javascript/LeftAndMain.js
@@ -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();
}
},

0 comments on commit 4388433

Please sign in to comment.