From 43884335831c04f99a3417fb9fe36b29383cd363 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Tue, 18 Dec 2012 10:44:12 +0000 Subject: [PATCH] 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. --- admin/javascript/LeftAndMain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 0417bc151..941c5eb43 100644 --- a/admin/javascript/LeftAndMain.js +++ b/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(); } },