MINOR Tree metadata naming

This commit is contained in:
Ingo Schommer 2012-05-07 14:45:39 +02:00
parent 6ec6b107ca
commit d8e62221b5

View File

@ -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
));
}
};