only replase right panel if not in edits
This commit is contained in:
parent
3b7f55df58
commit
3f9e50ac8f
1 changed files with 4 additions and 2 deletions
|
@ -536,7 +536,8 @@ pandora.enableDragAndDropClip = function($list, canMove) {
|
||||||
|
|
||||||
$list.bindEvent({
|
$list.bindEvent({
|
||||||
draganddropstart: function(data) {
|
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.action = 'copy';
|
||||||
drag.ids = $list.options('selected'),
|
drag.ids = $list.options('selected'),
|
||||||
drag.item = drag.ids.length == 1
|
drag.item = drag.ids.length == 1
|
||||||
|
@ -686,7 +687,8 @@ pandora.enableDragAndDropClip = function($list, canMove) {
|
||||||
$('.OxDrop').removeClass('OxDrop');
|
$('.OxDrop').removeClass('OxDrop');
|
||||||
$tooltip.hide();
|
$tooltip.hide();
|
||||||
setTimeout(function() {
|
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);
|
}, 500);
|
||||||
}, ms);
|
}, ms);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue