From 36b93c07c167c7ecd2f8d1b5cdc89329dc26d745 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 3 Feb 2014 10:32:41 +0530 Subject: [PATCH] add comment and fixme --- static/js/folderBrowserList.js | 3 ++- static/js/folderList.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/folderBrowserList.js b/static/js/folderBrowserList.js index 01e4a3da..78e05d75 100644 --- a/static/js/folderBrowserList.js +++ b/static/js/folderBrowserList.js @@ -159,6 +159,7 @@ pandora.ui.folderBrowserList = function(id, section) { .bindEvent({ click: function(data) { if (data.key == 'type') { + // FIXME: Why is this commented out? /* if (that.value(data.id, 'type') == 'smart') { pandora.$ui.filterDialog = pandora.ui.filterDialog(that.value(data.id, 'query')).open(); @@ -178,7 +179,7 @@ pandora.ui.folderBrowserList = function(id, section) { }, function(result) { Ox.Log('', 'result', result) if (result.data.user == pandora.user.username || result.data.subscribed) { - Ox.Request.clearCache(); // fixme: removen + Ox.Request.clearCache(); // fixme: remove pandora.$ui.folderList[ result.data.user == pandora.user.username ? 'personal' : 'favorite' ].reloadList(); diff --git a/static/js/folderList.js b/static/js/folderList.js index 9525b2da..c210bbdc 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -264,6 +264,7 @@ pandora.ui.folderList = function(id, section) { max: 1, min: 0, pageLength: 1000, + // won't work, getListData looks up data in $folderList //selected: pandora.getListData().folder == id ? [ui._list] : [], sort: [{key: 'position', operator: '+'}], sortable: id != 'featured' || canEditFeatured,