during drag clip to edit, left panel section != ui.section, so pass section to utility functions (resizeFolders, getFoldersWidth, getFoldersHeight, getInfoHeight, getAllItemsTitle)
This commit is contained in:
parent
0872435c91
commit
197c5ca9ff
3 changed files with 38 additions and 28 deletions
|
|
@ -1,6 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
pandora.ui.allItems = function(section) {
|
||||
|
||||
section = section || pandora.user.ui.section;
|
||||
|
||||
var canAddItems = !pandora.site.itemRequiresVideo && pandora.site.capabilities.canAddItems[pandora.user.level],
|
||||
|
|
@ -41,7 +42,7 @@ pandora.ui.allItems = function(section) {
|
|||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap'
|
||||
})
|
||||
.html(pandora.getAllItemsTitle())
|
||||
.html(pandora.getAllItemsTitle(section))
|
||||
.appendTo(that),
|
||||
$items;
|
||||
|
||||
|
|
@ -83,6 +84,7 @@ pandora.ui.allItems = function(section) {
|
|||
}, function(result) {
|
||||
that.update(result.data.items);
|
||||
});
|
||||
} else if (section == 'edits') {
|
||||
} else if (section == 'texts') {
|
||||
Ox.Button({
|
||||
style: 'symbol',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue