Skip to content

Commit

Permalink
[#4434] Fix issue with edit panel on contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
splittingred committed Apr 21, 2011
1 parent ca34bb0 commit fa35fa3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions core/docs/changelog.txt
Expand Up @@ -2,6 +2,7 @@
This file shows the changes in recent releases of MODX. The most current release is usually the
development release, and is only shown to give an idea of what's currently in the pipeline.

- [#4434] Fix issue with edit panel on contexts
- [#4372] Fix View button not getting URI change after Save Resource (all Resource types)
- [#4369] Ensure Save button is active after Template change on Weblink, Symlink, Static Resource
- [#4471] Set Resource alias properly on update
Expand Down
22 changes: 11 additions & 11 deletions manager/assets/modext/widgets/core/modx.tree.js
Expand Up @@ -78,23 +78,23 @@ MODx.tree.Tree = function(config) {
,menuConfig: {defaultAlign: 'tl-b?' ,enableScrolling: false}
});
if (config.remoteToolbar === true && (config.tbar === undefined || config.tbar === null)) {
MODx.Ajax.request({
Ext.Ajax.request({
url: config.remoteToolbarUrl || config.url
,params: {
action: config.remoteToolbarAction || 'getToolbar'
}
,listeners: {
'success': {fn:function(r) {
var itms = this._formatToolbar(r.object);
var tb = this.getTopToolbar();
if (tb) {
for (var i=0;i<itms.length;i++) {
tb.add(itms[i]);
}
tb.doLayout();
,success: function(r) {
r = Ext.decode(r.responseText);
var itms = this._formatToolbar(r.object);
var tb = this.getTopToolbar();
if (tb) {
for (var i=0;i<itms.length;i++) {
tb.add(itms[i]);
}
},scope:this}
tb.doLayout();
}
}
,scope:this
});
config.tbar = {bodyStyle: 'padding: 0'};
} else {
Expand Down

0 comments on commit fa35fa3

Please sign in to comment.