batch item/documents edit
This commit is contained in:
parent
38315e0c60
commit
0a4c507346
12 changed files with 879 additions and 510 deletions
|
|
@ -433,6 +433,12 @@ pandora.ui.mainMenu = function() {
|
|||
}
|
||||
} else if (data.id == 'edit') {
|
||||
pandora.ui.editItemDialog().open();
|
||||
} else if (data.id == 'batchedit') {
|
||||
if (ui.section == 'documents') {
|
||||
pandora.ui.editDocumentsDialog().open();
|
||||
} else {
|
||||
pandora.ui.editDialog().open();
|
||||
}
|
||||
} else if (data.id == 'deletelist') {
|
||||
pandora.ui.deleteListDialog().open();
|
||||
} else if (data.id == 'print') {
|
||||
|
|
@ -929,6 +935,20 @@ pandora.ui.mainMenu = function() {
|
|||
key_control_p: function() {
|
||||
window.open(document.location.href + '#?print=true', '_blank');
|
||||
},
|
||||
key_control_shift_e: function() {
|
||||
console.log('!!', ui.section, pandora.enableBatchEdit(ui.section))
|
||||
if (
|
||||
!pandora.hasDialogOrScreen() &&
|
||||
pandora.enableBatchEdit(ui.section)
|
||||
) {
|
||||
console.log('!!>>', ui.section)
|
||||
if (ui.section == 'documents') {
|
||||
pandora.ui.editDocumentsDialog().open();
|
||||
} else {
|
||||
pandora.ui.editDialog().open();
|
||||
}
|
||||
}
|
||||
},
|
||||
key_control_shift_f: function() {
|
||||
if (!pandora.hasDialogOrScreen()) {
|
||||
pandora.$ui.filterDialog = pandora.ui.filterDialog().open();
|
||||
|
|
@ -1146,6 +1166,7 @@ pandora.ui.mainMenu = function() {
|
|||
return { id: 'itemMenu', title: Ox._('Item'), items: [
|
||||
{ id: 'add', title: Ox._('Add {0}...', [Ox._('Document')]), disabled: !pandora.hasCapability('canAddItems') },
|
||||
{ id: 'edit', title: Ox._('Edit {0}...', [Ox._('Document')]), disabled: true /*fixme: !canEdit */ },
|
||||
{ id: 'batchedit', title: Ox._('Batch Edit {0}...', [Ox._('Documents')]), disabled: !pandora.enableBatchEdit(ui.section), keyboard: 'shift control e' },
|
||||
{},
|
||||
{ id: 'selectall', title: Ox._('Select All {0}', [listItemsName]), disabled: !canSelect, keyboard: 'control a' },
|
||||
{ id: 'selectnone', title: Ox._('Select None'), disabled: !canSelect, keyboard: 'shift control a' },
|
||||
|
|
@ -1423,6 +1444,7 @@ pandora.ui.mainMenu = function() {
|
|||
return { id: 'itemMenu', title: Ox._('Item'), items: [
|
||||
{ id: 'add', title: Ox._('Add {0}...', [Ox._(pandora.site.itemName.singular)]), disabled: !pandora.hasCapability('canAddItems') },
|
||||
{ id: 'edit', title: Ox._('Edit {0}...', [Ox._(pandora.site.itemName.singular)]), disabled: true /*fixme: !canEdit */ },
|
||||
{ id: 'batchedit', title: Ox._('Batch Edit {0}...', [Ox._(pandora.site.itemName.plural)]), disabled: !pandora.enableBatchEdit(ui.section), keyboard: 'shift control e' },
|
||||
{},
|
||||
{ id: 'selectall', title: Ox._('Select All {0}', [listItemsName]), disabled: !canSelect, keyboard: 'control a' },
|
||||
{ id: 'selectnone', title: Ox._('Select None'), disabled: !canSelect, keyboard: 'shift control a' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue