mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: change namespace for the tree so all matchers are executed
Refer to similar commit on framework (55cabd6fbfe5c2f90f0825ed2a51098dc9a2f5ac)
This commit is contained in:
parent
b75483e1da
commit
aaeebd6ea2
@ -1,6 +1,6 @@
|
||||
(function($) {
|
||||
|
||||
$.entwine('ss', function($){
|
||||
$.entwine('ss.tree', function($){
|
||||
$('.cms-tree').entwine({
|
||||
getTreeConfig: function() {
|
||||
var self = this, config = this._super(), hints = this.getHints();
|
||||
@ -18,7 +18,7 @@
|
||||
'label': '<span class="jstree-pageicon"></span>' + val.ssname,
|
||||
'_class': 'class-' + val.pagetype,
|
||||
'action': function(obj) {
|
||||
$('.cms-container').loadPanel(ss.i18n.sprintf(
|
||||
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
|
||||
self.data('urlAddpage'), id, val.pagetype
|
||||
));
|
||||
}
|
||||
@ -30,7 +30,7 @@
|
||||
'edit': {
|
||||
'label': ss.i18n._t('Tree.EditPage'),
|
||||
'action': function(obj) {
|
||||
$('.cms-container').loadPanel(ss.i18n.sprintf(
|
||||
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
|
||||
self.data('urlEditpage'), obj.data('id')
|
||||
));
|
||||
}
|
||||
@ -41,7 +41,7 @@
|
||||
menuitems['addsubpage'] = {
|
||||
'label': ss.i18n._t('Tree.AddSubPage'),
|
||||
'action': function(obj) {
|
||||
$('.cms-container').loadPanel(ss.i18n.sprintf(
|
||||
$('.cms-container').entwine('.ss').loadPanel(ss.i18n.sprintf(
|
||||
self.data('urlAddpage'), id, 'Page'
|
||||
));
|
||||
},
|
||||
@ -56,4 +56,4 @@
|
||||
});
|
||||
});
|
||||
|
||||
}(jQuery));
|
||||
}(jQuery));
|
||||
|
@ -2,7 +2,7 @@
|
||||
* File: ReportAdmin.Tree.js
|
||||
*/
|
||||
(function($) {
|
||||
$.entwine('ss', function($){
|
||||
$.entwine('ss.tree', function($){
|
||||
/**
|
||||
* Class: .cms-tree
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user