Permalink
Browse files

BUGFIX: Fixed add page context menu, replacing references to .pagetyp…

…e with .ssclass. (#7398)
  • Loading branch information...
1 parent 808819e commit b6ca328494b72ed0db7925e21f75440b0e0433f1 @sminnee sminnee committed May 24, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript/CMSMain.Tree.js
@@ -7,6 +7,7 @@
config.plugins.push('contextmenu');
config.contextmenu = {
'items': function(node) {
+
// Build a list for allowed children as submenu entries
var pagetype = node.data('pagetype');
var id = node.data('id');
@@ -16,10 +17,10 @@
function(key, val){
allowedChildren["allowedchildren-" + key ] = {
'label': '<span class="jstree-pageicon"></span>' + val.ssname,
- '_class': 'class-' + val.pagetype,
+ '_class': 'class-' + val.ssclass,
'action': function(obj) {
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
- self.data('urlAddpage'), id, val.pagetype
+ self.data('urlAddpage'), id, val.ssclass
));
}
};

0 comments on commit b6ca328

Please sign in to comment.