Open livelysalt opened 12 years ago
It is a problem for me as well. I couldn't find out why.
I reverted Ext to version 4.0.2a and that has removed the problems I found so far.
paste this code in abstract/TreeStore.js ;)
Ext.override(Ext.data.TreeStore, { load: function(options) { options = options || {}; options.params = options.params || {};
var me = this,
node = options.node || me.tree.getRootNode(),
root;
// If there is not a node it means the user hasnt defined a rootnode yet. In this case lets just
// create one for them.
if (!node) {
node = me.setRootNode({
expanded: true
});
}
if (me.clearOnLoad) {
node.removeAll(false);
}
Ext.applyIf(options, {
node: node
});
options.params[me.nodeParam] = node ? node.getId() : 'root';
if (node) {
node.set('loading', true);
}
return me.callParent([options]);
}
});
/**
Ext.define("Bleext.abstract.TreeStore",{ extend : "Ext.data.TreeStore",
autoLoad : true,
folderSort : true,
constructor : function() {
var me = this;
me.proxy = {
type : "ajax",
url : Bleext.BASE_PATH + "index.php/"+me.url,
params : this.params
};
me.callParent();
}
});
Ext.override(Ext.data.TreeStore, { load: function(options) { options = options || {}; options.params = options.params || {};
var me = this,
node = options.node || me.tree.getRootNode(),
root;
// If there is not a node it means the user hasnt defined a rootnode yet. In this case lets just
// create one for them.
if (!node) {
node = me.setRootNode({
expanded: true
});
}
if (me.clearOnLoad) {
node.removeAll(false);
}
Ext.applyIf(options, {
node: node
});
options.params[me.nodeParam] = node ? node.getId() : 'root';
if (node) {
node.set('loading', true);
}
return me.callParent([options]);
}
});
After having updated to Ext 4.0.7 I now receive the following error on several Ajax calls:
[E] You are using a ServerProxy but have not supplied it with a url. .../js/Ext/ext-all-dev.js Line 9405
This happens on some of my apps, and also when saving changes in the Applications app.
The call successfully reaches the server, but the error occurs on the response.