Permalink
Browse files

MINOR Tree metadata naming

  • Loading branch information...
1 parent 6ec6b10 commit d8e62221b5c8ac21339b413cf455dbe5ad589bee @chillu chillu committed May 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 javascript/CMSMain.Tree.js
@@ -8,18 +8,18 @@
config.contextmenu = {
'items': function(node) {
// Build a list for allowed children as submenu entries
- var ssclass = node.data('ssclass');
+ var pagetype = node.data('pagetype');
var id = node.data('id');
var allowedChildren = new Object;
- $(hints[ssclass].allowedChildren).each(
+ $(hints[pagetype].allowedChildren).each(
function(key, val){
allowedChildren["allowedchildren-" + key ] = {
'label': '<span class="jstree-pageicon"></span>' + val.ssname,
- '_class': 'class-' + val.ssclass,
+ '_class': 'class-' + val.pagetype,
'action': function(obj) {
$('.cms-container').loadPanel(ss.i18n.sprintf(
- self.data('urlAddpage'), id, val.ssclass
+ self.data('urlAddpage'), id, val.pagetype
));
}
};

0 comments on commit d8e6222

Please sign in to comment.