From f5aadf2267e62af8b4e794454e2262def62c826e Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 7 Nov 2011 18:45:06 +0000 Subject: [PATCH] fix a bug that would break a list folder after adding a list --- static/js/pandora/folderList.js | 5 +++++ static/js/pandora/utils.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/folderList.js b/static/js/pandora/folderList.js index ea941b3f..9d010094 100644 --- a/static/js/pandora/folderList.js +++ b/static/js/pandora/folderList.js @@ -338,6 +338,11 @@ pandora.ui.folderList = function(id) { }); } }, + /* + edit: function() { + pandora.ui.listDialog().open(); + }, + */ init: function(data) { pandora.site.sectionFolders[pandora.user.ui.section][i].items = data.items; pandora.$ui.folder[i].$content.css({ diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 106e13f8..dc07ed1a 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -123,7 +123,7 @@ pandora.addList = function() { $folderList.bindEventOnce({ load: function(data) { $folderList.gainFocus() - .options({selected: [list]}) + .options({selected: [newList]}) .editCell(newList, 'name'); pandora.UI.set({ find: {