mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #751 from madmatt/fix_for_cms_issue_750
Fix Issue #750
This commit is contained in:
commit
f64488b0d8
@ -29,7 +29,7 @@
|
||||
var menuitems =
|
||||
{
|
||||
'edit': {
|
||||
'label': ss.i18n._t('Tree.EditPage'),
|
||||
'label': ss.i18n._t('Tree.EditPage', 'Edit page', 100, 'Used in the context menu when right-clicking on a page node in the CMS tree'),
|
||||
'action': function(obj) {
|
||||
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
|
||||
self.data('urlEditpage'), obj.data('id')
|
||||
@ -40,7 +40,7 @@
|
||||
// Test if there are any allowed Children and thus the possibility of adding some
|
||||
if(allowedChildren.hasOwnProperty('allowedchildren-0')) {
|
||||
menuitems['addsubpage'] = {
|
||||
'label': ss.i18n._t('Tree.AddSubPage'),
|
||||
'label': ss.i18n._t('Tree.AddSubPage', 'Add page under this page', 100, 'Used in the context menu when right-clicking on a page node in the CMS tree'),
|
||||
'submenu': allowedChildren
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user