From b6ca328494b72ed0db7925e21f75440b0e0433f1 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 25 May 2012 10:36:42 +1200 Subject: [PATCH] BUGFIX: Fixed add page context menu, replacing references to .pagetype with .ssclass. (#7398) --- javascript/CMSMain.Tree.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/javascript/CMSMain.Tree.js b/javascript/CMSMain.Tree.js index 0ba83ffe..49d522ac 100644 --- a/javascript/CMSMain.Tree.js +++ b/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': '' + 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 )); } };