fix adding text via main menu
This commit is contained in:
parent
7df2dd95c8
commit
bf57c47bfe
1 changed files with 10 additions and 2 deletions
|
@ -347,9 +347,17 @@ pandora.ui.mainMenu = function() {
|
||||||
} else if ([
|
} else if ([
|
||||||
'newlist', 'newlistfromselection', 'newsmartlist', 'newsmartlistfromresults'
|
'newlist', 'newlistfromselection', 'newsmartlist', 'newsmartlistfromresults'
|
||||||
].indexOf(data.id) > -1) {
|
].indexOf(data.id) > -1) {
|
||||||
pandora.addList(data.id.indexOf('smart') > -1, data.id.indexOf('from') > -1);
|
if (ui.section == 'texts') {
|
||||||
|
pandora.addText({type: 'text'});
|
||||||
|
} else {
|
||||||
|
pandora.addList(data.id.indexOf('smart') > -1, data.id.indexOf('from') > -1);
|
||||||
|
}
|
||||||
} else if (data.id == 'duplicatelist') {
|
} else if (data.id == 'duplicatelist') {
|
||||||
pandora.addList(ui._list);
|
if (ui.section == 'texts') {
|
||||||
|
pandora.addText({type: 'text'});
|
||||||
|
} else {
|
||||||
|
pandora.addList(ui._list);
|
||||||
|
}
|
||||||
} else if (data.id == 'editlist') {
|
} else if (data.id == 'editlist') {
|
||||||
pandora.ui.listDialog().open();
|
pandora.ui.listDialog().open();
|
||||||
} else if (data.id == 'add') {
|
} else if (data.id == 'add') {
|
||||||
|
|
Loading…
Reference in a new issue