forked from 0x2620/pandora
spring-loaded left panel
This commit is contained in:
parent
ba9cd056dd
commit
02582aa432
1 changed files with 19 additions and 10 deletions
|
@ -41,22 +41,31 @@ pandora.enableDragAndDrop = function($list, canMove) {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
draganddrop: function(data) {
|
draganddrop: function(data) {
|
||||||
|
Ox.print(pandora.$ui.folders.$element.scrollTop(0));
|
||||||
$tooltip.options({
|
$tooltip.options({
|
||||||
title: getTitle(data._event)
|
title: getTitle(data._event)
|
||||||
}).show(data._event);
|
}).show(data._event);
|
||||||
},
|
},
|
||||||
draganddroppause: function(data) {
|
draganddroppause: function(data) {
|
||||||
var $parent = $(data._event.target).parent(),
|
var event = data._event,
|
||||||
$grandparent = $parent.parent(),
|
$parent, $grandparent, $panel, $bar, title;
|
||||||
|
if (
|
||||||
|
// fixme: should be named showLists in the user ui prefs!
|
||||||
|
!pandora.user.ui.showSidebar && event.clientX < 16
|
||||||
|
&& event.clientY >= 44 && event.clientY < window.innerHeight - 16
|
||||||
|
) {
|
||||||
|
pandora.$ui.mainPanel.toggle(0);
|
||||||
|
} else {
|
||||||
|
$parent = $(data._event.target).parent();
|
||||||
|
$grandparent = $parent.parent();
|
||||||
$panel = $parent.is('.OxCollapsePanel') ? $parent
|
$panel = $parent.is('.OxCollapsePanel') ? $parent
|
||||||
: $grandparent.is('.OxCollapsePanel') ? $grandparent : null,
|
: $grandparent.is('.OxCollapsePanel') ? $grandparent : null;
|
||||||
$bar,
|
if ($panel) {
|
||||||
title;
|
$bar = $panel.children('.OxBar');
|
||||||
if ($panel) {
|
title = $bar.children('.OxTitle')
|
||||||
$bar = $panel.children('.OxBar');
|
.html().split(' ')[0].toLowerCase();
|
||||||
title = $bar.children('.OxTitle')
|
!pandora.user.ui.showFolder.items[title] && $bar.trigger('dblclick');
|
||||||
.html().split(' ')[0].toLowerCase();
|
}
|
||||||
!pandora.user.ui.showFolder.items[title] && $bar.trigger('dblclick');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
draganddropenter: function(data) {
|
draganddropenter: function(data) {
|
||||||
|
|
Loading…
Reference in a new issue