From 2543cf756f5c8457dd12f36fe08a3344a9b6f41f Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 6 Aug 2013 19:56:11 +0000 Subject: [PATCH] make sure item menu doesn't blink on drag & drop --- static/js/mainMenu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index 0a72ea2b7..2495cce15 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -745,16 +745,16 @@ pandora.ui.mainMenu = function() { pandora.clipboard.bindEvent(function(data, event) { if (Ox.contains(['add', 'copy', 'clear'], event)) { that.replaceMenu('itemMenu', getItemMenu()); - if (Ox.contains(['add', 'copy'], event) && !fromMenu) { - that.highlightMenu('itemMenu'); - } + } + if (Ox.contains(['add', 'copy', 'paste'], event) && !fromMenu) { + that.highlightMenu('itemMenu'); } fromMenu = false; }); pandora.history.bindEvent(function(data, event) { that.replaceMenu('itemMenu', getItemMenu()); - if (Ox.contains(['add', 'undo', 'redo'], event) && !fromMenu) { + if (Ox.contains(['undo', 'redo'], event) && !fromMenu) { that.highlightMenu('itemMenu'); } fromMenu = false;