use correct list name in menu

This commit is contained in:
rolux 2013-08-14 23:30:15 +00:00
parent 34ffd6a29a
commit 6eaf5a84ee

View file

@ -319,7 +319,7 @@ pandora.ui.mainMenu = function() {
pandora.UI.set({ pandora.UI.set({
find: { find: {
conditions: data.checked ? [ conditions: data.checked ? [
{key: 'list', value: data.id.slice(8), operator: '=='} {key: 'list', value: data.id.slice(8).replace(/\t/g, '_'), operator: '=='}
] : [], ] : [],
operator: '&' operator: '&'
} }
@ -603,7 +603,7 @@ pandora.ui.mainMenu = function() {
previousList = pandora.UI.getPrevious()._list; previousList = pandora.UI.getPrevious()._list;
if (list != previousList) { if (list != previousList) {
that.uncheckItem(previousList == '' ? 'allitems' : 'viewlist' + previousList.replace(/_/g, Ox.char(9))); that.uncheckItem(previousList == '' ? 'allitems' : 'viewlist' + previousList.replace(/_/g, Ox.char(9)));
that.checkItem(list == '' ? 'allitems' : 'viewlist' + list.replace(/_/g, Ox.char(9))); that.checkItem(list == '' ? 'allitems' : 'viewlist' + list.replace(/_/g, '\t'));
} }
that[action]('editlist'); that[action]('editlist');
that[action]('duplicatelist'); that[action]('duplicatelist');