fix list dialog
This commit is contained in:
parent
76aba5d581
commit
61fff0a8d7
1 changed files with 5 additions and 4 deletions
|
@ -468,7 +468,7 @@ oml.ui.mainMenu = function() {
|
||||||
} else if (id == 'deletefromlibrary') {
|
} else if (id == 'deletefromlibrary') {
|
||||||
oml.ui.deleteItemsDialog().open();
|
oml.ui.deleteItemsDialog().open();
|
||||||
} else if (id == 'editlist') {
|
} else if (id == 'editlist') {
|
||||||
oml.ui.listDialog.open();
|
oml.ui.listDialog().open()
|
||||||
} else if (id == 'deletelist') {
|
} else if (id == 'deletelist') {
|
||||||
oml.ui.deleteListDialog().open();
|
oml.ui.deleteListDialog().open();
|
||||||
} else if (id == 'import') {
|
} else if (id == 'import') {
|
||||||
|
@ -940,7 +940,8 @@ oml.ui.mainMenu = function() {
|
||||||
var isLibraries = !ui._list,
|
var isLibraries = !ui._list,
|
||||||
isLibrary = Ox.endsWith(ui._list, ':'),
|
isLibrary = Ox.endsWith(ui._list, ':'),
|
||||||
isList = !isLibraries && !isLibrary,
|
isList = !isLibraries && !isLibrary,
|
||||||
isOwnList = ui._list[0] == ':';
|
isOwnList = ui._list[0] == ':',
|
||||||
|
isPublic = ui._list == ':Public';
|
||||||
|
|
||||||
if (oml.readOnly) {
|
if (oml.readOnly) {
|
||||||
return {
|
return {
|
||||||
|
@ -1004,13 +1005,13 @@ oml.ui.mainMenu = function() {
|
||||||
id: 'editlist',
|
id: 'editlist',
|
||||||
title: Ox._('Edit List...'),
|
title: Ox._('Edit List...'),
|
||||||
keyboard: 'return',
|
keyboard: 'return',
|
||||||
disabled: !isList || !isOwnList
|
disabled: !isList || !isOwnList || isPublic
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'deletelist',
|
id: 'deletelist',
|
||||||
title: Ox._('Delete List...'),
|
title: Ox._('Delete List...'),
|
||||||
keyboard: 'delete',
|
keyboard: 'delete',
|
||||||
disabled: !isList || !isOwnList
|
disabled: !isList || !isOwnList || isPublic
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue