mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
ENHANCEMENT "Edit" action in tree context menu
This commit is contained in:
parent
454a6e891d
commit
112a3f5f81
@ -12,6 +12,13 @@
|
|||||||
"rename": null,
|
"rename": null,
|
||||||
"remove": null,
|
"remove": null,
|
||||||
"ccp": null,
|
"ccp": null,
|
||||||
|
'edit': {
|
||||||
|
'label': ss.i18n._t('Tree.EditPage'),
|
||||||
|
'action': function(obj) {
|
||||||
|
// TODO Fix hardcoding of link
|
||||||
|
$('.cms-container').loadPanel('admin/page/edit/show/' + obj.data('id'));
|
||||||
|
}
|
||||||
|
},
|
||||||
'addsubpage': {
|
'addsubpage': {
|
||||||
'label': ss.i18n._t('Tree.AddSubPage'),
|
'label': ss.i18n._t('Tree.AddSubPage'),
|
||||||
'action': function(obj) {
|
'action': function(obj) {
|
||||||
|
@ -37,6 +37,7 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
|
|||||||
'WidgetAreaEditor.TOOMANY': 'Sorry, you have reached the maximum number of widgets in this area',
|
'WidgetAreaEditor.TOOMANY': 'Sorry, you have reached the maximum number of widgets in this area',
|
||||||
'AssetAdmin.ConfirmDelete': 'Do you really want to delete this folder and all contained files?',
|
'AssetAdmin.ConfirmDelete': 'Do you really want to delete this folder and all contained files?',
|
||||||
'Folder.Name': 'Foldername',
|
'Folder.Name': 'Foldername',
|
||||||
'Tree.AddSubPage': 'Add new page here'
|
'Tree.AddSubPage': 'Add new page here',
|
||||||
|
'Tree.EditPage': 'Edit'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user