Merge pull request #751 from madmatt/fix_for_cms_issue_750

Fix Issue #750
This commit is contained in:
Ingo Schommer 2013-05-22 12:21:09 -07:00
commit f64488b0d8

View File

@ -29,7 +29,7 @@
var menuitems = var menuitems =
{ {
'edit': { '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) { 'action': function(obj) {
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf( $('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
self.data('urlEditpage'), obj.data('id') self.data('urlEditpage'), obj.data('id')
@ -40,7 +40,7 @@
// Test if there are any allowed Children and thus the possibility of adding some // Test if there are any allowed Children and thus the possibility of adding some
if(allowedChildren.hasOwnProperty('allowedchildren-0')) { if(allowedChildren.hasOwnProperty('allowedchildren-0')) {
menuitems['addsubpage'] = { 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 'submenu': allowedChildren
}; };
} }