From 3f9e50ac8f313cc2de42f2569ee5e68ef24c77a1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 15 Jul 2013 12:14:18 +0000 Subject: [PATCH] only replase right panel if not in edits --- static/js/pandora/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index d4079801..c000b461 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -536,7 +536,8 @@ pandora.enableDragAndDropClip = function($list, canMove) { $list.bindEvent({ draganddropstart: function(data) { - pandora.$ui.mainPanel.replaceElement(0, pandora.$ui.leftPanel = pandora.ui.leftPanel('edits')); + pandora.user.ui.section != 'edits' && pandora.$ui.mainPanel.replaceElement(0, + pandora.$ui.leftPanel = pandora.ui.leftPanel('edits')); drag.action = 'copy'; drag.ids = $list.options('selected'), drag.item = drag.ids.length == 1 @@ -686,7 +687,8 @@ pandora.enableDragAndDropClip = function($list, canMove) { $('.OxDrop').removeClass('OxDrop'); $tooltip.hide(); setTimeout(function() { - pandora.$ui.mainPanel.replaceElement(0, pandora.$ui.leftPanel = pandora.ui.leftPanel()); + pandora.user.ui.section != 'edits' && pandora.$ui.mainPanel.replaceElement(0, + pandora.$ui.leftPanel = pandora.ui.leftPanel()); }, 500); }, ms); }