only replase right panel if not in edits

This commit is contained in:
j 2013-07-15 12:14:18 +00:00
parent 3b7f55df58
commit 3f9e50ac8f

View file

@ -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);
}