forked from 0x2620/pandora
fix a bug that would break a list folder after adding a list
This commit is contained in:
parent
de0fae53c2
commit
f5aadf2267
2 changed files with 6 additions and 1 deletions
|
@ -338,6 +338,11 @@ pandora.ui.folderList = function(id) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
|
edit: function() {
|
||||||
|
pandora.ui.listDialog().open();
|
||||||
|
},
|
||||||
|
*/
|
||||||
init: function(data) {
|
init: function(data) {
|
||||||
pandora.site.sectionFolders[pandora.user.ui.section][i].items = data.items;
|
pandora.site.sectionFolders[pandora.user.ui.section][i].items = data.items;
|
||||||
pandora.$ui.folder[i].$content.css({
|
pandora.$ui.folder[i].$content.css({
|
||||||
|
|
|
@ -123,7 +123,7 @@ pandora.addList = function() {
|
||||||
$folderList.bindEventOnce({
|
$folderList.bindEventOnce({
|
||||||
load: function(data) {
|
load: function(data) {
|
||||||
$folderList.gainFocus()
|
$folderList.gainFocus()
|
||||||
.options({selected: [list]})
|
.options({selected: [newList]})
|
||||||
.editCell(newList, 'name');
|
.editCell(newList, 'name');
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
find: {
|
find: {
|
||||||
|
|
Loading…
Reference in a new issue