forked from 0x2620/pandora
new documents section
This commit is contained in:
parent
3fcbd59525
commit
e1f35b1ec8
74 changed files with 6737 additions and 631 deletions
|
|
@ -5,7 +5,7 @@
|
|||
pandora.ui.deleteListDialog = function(list) {
|
||||
|
||||
var ui = pandora.user.ui,
|
||||
folderItems = ui.section == 'items' ? 'Lists' : Ox.toTitleCase(ui.section),
|
||||
folderItems = pandora.getFolderItems(ui.section),
|
||||
folderItem = folderItems.slice(0, -1),
|
||||
listData = pandora.getListData(list),
|
||||
$folderList = pandora.$ui.folderList[listData.folder],
|
||||
|
|
@ -42,6 +42,14 @@ pandora.ui.deleteListDialog = function(list) {
|
|||
pandora.UI.set({
|
||||
find: pandora.site.user.ui.find
|
||||
});
|
||||
} else if (ui.section == 'documents') {
|
||||
pandora.UI.set(
|
||||
'collections.' + listData.id, null
|
||||
);
|
||||
pandora.UI.set({
|
||||
findDocuments: pandora.site.user.ui.findDocuments
|
||||
});
|
||||
|
||||
} else {
|
||||
pandora.UI.set(
|
||||
folderItem.toLowerCase(), ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue