avoid large getEdit call

This commit is contained in:
j 2015-03-19 19:54:58 +05:30
parent 0e187aa24c
commit 148fa81f3c

View file

@ -2262,7 +2262,7 @@ pandora.selectList = function() {
var id = pandora.user.ui[pandora.user.ui.section.slice(0,-1)], var id = pandora.user.ui[pandora.user.ui.section.slice(0,-1)],
section = Ox.toTitleCase(pandora.user.ui.section.slice(0, -1)); section = Ox.toTitleCase(pandora.user.ui.section.slice(0, -1));
if (id) { if (id) {
pandora.api['get' + section]({id: id}, function(result) { pandora.api['get' + section]({id: id, keys: ['id', 'status', 'user']}, function(result) {
var folder; var folder;
if (result.data.id) { if (result.data.id) {
folder = result.data.status == 'featured' ? 'featured' : ( folder = result.data.status == 'featured' ? 'featured' : (