in menu, encode underscores in list names (fixes #1816)
This commit is contained in:
parent
e8d2280466
commit
34ffd6a29a
1 changed files with 3 additions and 3 deletions
|
@ -602,8 +602,8 @@ pandora.ui.mainMenu = function() {
|
|||
list = ui._list,
|
||||
previousList = pandora.UI.getPrevious()._list;
|
||||
if (list != previousList) {
|
||||
that.uncheckItem(previousList == '' ? 'allitems' : 'viewlist' + previousList);
|
||||
that.checkItem(list == '' ? 'allitems' : 'viewlist' + list);
|
||||
that.uncheckItem(previousList == '' ? 'allitems' : 'viewlist' + previousList.replace(/_/g, Ox.char(9)));
|
||||
that.checkItem(list == '' ? 'allitems' : 'viewlist' + list.replace(/_/g, Ox.char(9)));
|
||||
}
|
||||
that[action]('editlist');
|
||||
that[action]('duplicatelist');
|
||||
|
@ -906,7 +906,7 @@ pandora.ui.mainMenu = function() {
|
|||
? [{id: 'nolists', title: Ox._('No ' + Ox.toTitleCase(folder) + ' ' + itemNamePlural), disabled: true}]
|
||||
: lists[folder].map(function(list) {
|
||||
return {
|
||||
id: 'viewlist' + list.id,
|
||||
id: 'viewlist' + list.id.replace(/_/g, Ox.char(9)),
|
||||
title: Ox.encodeHTMLEntities((
|
||||
folder == 'favorite' ? list.user + ': ' : ''
|
||||
) + list.name),
|
||||
|
|
Loading…
Reference in a new issue