add comment and fixme

This commit is contained in:
rolux 2014-02-03 10:32:41 +05:30
parent c8413345b9
commit 36b93c07c1
2 changed files with 3 additions and 1 deletions

View file

@ -159,6 +159,7 @@ pandora.ui.folderBrowserList = function(id, section) {
.bindEvent({ .bindEvent({
click: function(data) { click: function(data) {
if (data.key == 'type') { if (data.key == 'type') {
// FIXME: Why is this commented out?
/* /*
if (that.value(data.id, 'type') == 'smart') { if (that.value(data.id, 'type') == 'smart') {
pandora.$ui.filterDialog = pandora.ui.filterDialog(that.value(data.id, 'query')).open(); pandora.$ui.filterDialog = pandora.ui.filterDialog(that.value(data.id, 'query')).open();
@ -178,7 +179,7 @@ pandora.ui.folderBrowserList = function(id, section) {
}, function(result) { }, function(result) {
Ox.Log('', 'result', result) Ox.Log('', 'result', result)
if (result.data.user == pandora.user.username || result.data.subscribed) { if (result.data.user == pandora.user.username || result.data.subscribed) {
Ox.Request.clearCache(); // fixme: removen Ox.Request.clearCache(); // fixme: remove
pandora.$ui.folderList[ pandora.$ui.folderList[
result.data.user == pandora.user.username ? 'personal' : 'favorite' result.data.user == pandora.user.username ? 'personal' : 'favorite'
].reloadList(); ].reloadList();

View file

@ -264,6 +264,7 @@ pandora.ui.folderList = function(id, section) {
max: 1, max: 1,
min: 0, min: 0,
pageLength: 1000, pageLength: 1000,
// won't work, getListData looks up data in $folderList
//selected: pandora.getListData().folder == id ? [ui._list] : [], //selected: pandora.getListData().folder == id ? [ui._list] : [],
sort: [{key: 'position', operator: '+'}], sort: [{key: 'position', operator: '+'}],
sortable: id != 'featured' || canEditFeatured, sortable: id != 'featured' || canEditFeatured,