ENHANCEMENT "Edit" action in tree context menu

This commit is contained in:
Ingo Schommer 2012-03-12 11:48:44 +01:00
parent 454a6e891d
commit 112a3f5f81
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,13 @@
"rename": null,
"remove": 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': {
'label': ss.i18n._t('Tree.AddSubPage'),
'action': function(obj) {

View File

@ -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',
'AssetAdmin.ConfirmDelete': 'Do you really want to delete this folder and all contained files?',
'Folder.Name': 'Foldername',
'Tree.AddSubPage': 'Add new page here'
'Tree.AddSubPage': 'Add new page here',
'Tree.EditPage': 'Edit'
});
}