BUGFIX: change namespace for the tree so all matchers are executed

Refer to similar commit on framework
(55cabd6fbfe5c2f90f0825ed2a51098dc9a2f5ac)
This commit is contained in:
Mateusz Uzdowski 2012-05-18 12:09:47 +12:00
parent b75483e1da
commit aaeebd6ea2
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
(function($) { (function($) {
$.entwine('ss', function($){ $.entwine('ss.tree', function($){
$('.cms-tree').entwine({ $('.cms-tree').entwine({
getTreeConfig: function() { getTreeConfig: function() {
var self = this, config = this._super(), hints = this.getHints(); var self = this, config = this._super(), hints = this.getHints();
@ -18,7 +18,7 @@
'label': '<span class="jstree-pageicon"></span>' + val.ssname, 'label': '<span class="jstree-pageicon"></span>' + val.ssname,
'_class': 'class-' + val.pagetype, '_class': 'class-' + val.pagetype,
'action': function(obj) { 'action': function(obj) {
$('.cms-container').loadPanel(ss.i18n.sprintf( $('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
self.data('urlAddpage'), id, val.pagetype self.data('urlAddpage'), id, val.pagetype
)); ));
} }
@ -30,7 +30,7 @@
'edit': { 'edit': {
'label': ss.i18n._t('Tree.EditPage'), 'label': ss.i18n._t('Tree.EditPage'),
'action': function(obj) { 'action': function(obj) {
$('.cms-container').loadPanel(ss.i18n.sprintf( $('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
self.data('urlEditpage'), obj.data('id') self.data('urlEditpage'), obj.data('id')
)); ));
} }
@ -41,7 +41,7 @@
menuitems['addsubpage'] = { menuitems['addsubpage'] = {
'label': ss.i18n._t('Tree.AddSubPage'), 'label': ss.i18n._t('Tree.AddSubPage'),
'action': function(obj) { 'action': function(obj) {
$('.cms-container').loadPanel(ss.i18n.sprintf( $('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
self.data('urlAddpage'), id, 'Page' self.data('urlAddpage'), id, 'Page'
)); ));
}, },
@ -56,4 +56,4 @@
}); });
}); });
}(jQuery)); }(jQuery));

View File

@ -2,7 +2,7 @@
* File: ReportAdmin.Tree.js * File: ReportAdmin.Tree.js
*/ */
(function($) { (function($) {
$.entwine('ss', function($){ $.entwine('ss.tree', function($){
/** /**
* Class: .cms-tree * Class: .cms-tree
* *