forked from 0x2620/pandora
spring-loaded folder lists
This commit is contained in:
parent
e4b2e5d8e1
commit
ba9cd056dd
3 changed files with 19 additions and 4 deletions
|
@ -45,6 +45,20 @@ pandora.enableDragAndDrop = function($list, canMove) {
|
|||
title: getTitle(data._event)
|
||||
}).show(data._event);
|
||||
},
|
||||
draganddroppause: function(data) {
|
||||
var $parent = $(data._event.target).parent(),
|
||||
$grandparent = $parent.parent(),
|
||||
$panel = $parent.is('.OxCollapsePanel') ? $parent
|
||||
: $grandparent.is('.OxCollapsePanel') ? $grandparent : null,
|
||||
$bar,
|
||||
title;
|
||||
if ($panel) {
|
||||
$bar = $panel.children('.OxBar');
|
||||
title = $bar.children('.OxTitle')
|
||||
.html().split(' ')[0].toLowerCase();
|
||||
!pandora.user.ui.showFolder.items[title] && $bar.trigger('dblclick');
|
||||
}
|
||||
},
|
||||
draganddropenter: function(data) {
|
||||
var $parent = $(data._event.target).parent(),
|
||||
$item = $parent.is('.OxItem') ? $parent : $parent.parent(),
|
||||
|
|
|
@ -37,6 +37,7 @@ pandora.ui.folders = function() {
|
|||
max: 0,
|
||||
min: 0,
|
||||
selectable: false,
|
||||
tooltip: 'Manage Personal Lists',
|
||||
type: 'image'
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
|
@ -80,11 +80,11 @@ pandora.ui.mainMenu = function() {
|
|||
{},
|
||||
{ id: 'usesiteposter', title: 'Always Use ' + pandora.site.site.name + ' Poster' }
|
||||
] },
|
||||
{ id: 'columns', title: 'Column Layout', items: [
|
||||
{ id: 'loadlayout', title: 'Load...' },
|
||||
{ id: 'savelayout', title: 'Save...' },
|
||||
{ id: 'columns', title: 'Columns', items: [
|
||||
{ id: 'loadcolumns', title: 'Load Layout...' },
|
||||
{ id: 'savecolumns', title: 'Save Layout...' },
|
||||
{},
|
||||
{ id: 'resetlayout', title: 'Reset' }
|
||||
{ id: 'resetcolumns', title: 'Reset to Default' }
|
||||
]},
|
||||
{},
|
||||
{ id: 'openmovie', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [
|
||||
|
|
Loading…
Reference in a new issue