spring-loaded folder lists
This commit is contained in:
parent
e051d5a3d7
commit
580e2d95ad
3 changed files with 19 additions and 4 deletions
|
@ -45,6 +45,20 @@ pandora.enableDragAndDrop = function($list, canMove) {
|
||||||
title: getTitle(data._event)
|
title: getTitle(data._event)
|
||||||
}).show(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) {
|
draganddropenter: function(data) {
|
||||||
var $parent = $(data._event.target).parent(),
|
var $parent = $(data._event.target).parent(),
|
||||||
$item = $parent.is('.OxItem') ? $parent : $parent.parent(),
|
$item = $parent.is('.OxItem') ? $parent : $parent.parent(),
|
||||||
|
|
|
@ -37,6 +37,7 @@ pandora.ui.folders = function() {
|
||||||
max: 0,
|
max: 0,
|
||||||
min: 0,
|
min: 0,
|
||||||
selectable: false,
|
selectable: false,
|
||||||
|
tooltip: 'Manage Personal Lists',
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
|
|
@ -80,11 +80,11 @@ pandora.ui.mainMenu = function() {
|
||||||
{},
|
{},
|
||||||
{ id: 'usesiteposter', title: 'Always Use ' + pandora.site.site.name + ' Poster' }
|
{ id: 'usesiteposter', title: 'Always Use ' + pandora.site.site.name + ' Poster' }
|
||||||
] },
|
] },
|
||||||
{ id: 'columns', title: 'Column Layout', items: [
|
{ id: 'columns', title: 'Columns', items: [
|
||||||
{ id: 'loadlayout', title: 'Load...' },
|
{ id: 'loadcolumns', title: 'Load Layout...' },
|
||||||
{ id: 'savelayout', title: 'Save...' },
|
{ 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: [
|
{ id: 'openmovie', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [
|
||||||
|
|
Loading…
Reference in a new issue