FIX: Prevent opening preview when clicking the link for current page again

This commit is contained in:
Loz Calver 2013-03-01 11:42:34 +00:00
parent 1fef42681a
commit 9a1ccd8a67

View File

@ -169,7 +169,8 @@ jQuery.noConflict();
*/ */
'from .cms-menu-list li a': { 'from .cms-menu-list li a': {
onclick: function(e) { onclick: function(e) {
if(e.which > 1) return; var href = $(e.target).attr('href');
if(e.which > 1 || href == this._tabStateUrl()) return;
this.splitViewMode(); this.splitViewMode();
} }
}, },