mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-01 05:39:31 +02:00
MINOR Triggering LeftAndMain.EditForm.js load() callback after loading the response - this makes more sense, as the inserted HTML can be parsed at this point
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92707 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
05d1f6e038
commit
81e3fd04e9
@ -160,7 +160,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {String} url
|
* @param {String} url
|
||||||
* @param {Function} callback (Optional)
|
* @param {Function} callback (Optional) Called after the form content as been loaded
|
||||||
* @param {ajaxOptions} Object literal merged into the jQuery.ajax() call (Optional)
|
* @param {ajaxOptions} Object literal merged into the jQuery.ajax() call (Optional)
|
||||||
*/
|
*/
|
||||||
load: function(url, callback, ajaxOptions) {
|
load: function(url, callback, ajaxOptions) {
|
||||||
@ -177,9 +177,9 @@
|
|||||||
// TODO This should be using the plugin API
|
// TODO This should be using the plugin API
|
||||||
self.removeClass('changed');
|
self.removeClass('changed');
|
||||||
|
|
||||||
if(callback) callback.apply(self, arguments);
|
|
||||||
|
|
||||||
self._loadResponse(xmlhttp.responseText, status, xmlhttp);
|
self._loadResponse(xmlhttp.responseText, status, xmlhttp);
|
||||||
|
|
||||||
|
if(callback) callback.apply(self, arguments);
|
||||||
},
|
},
|
||||||
dataType: 'html'
|
dataType: 'html'
|
||||||
}, ajaxOptions));
|
}, ajaxOptions));
|
||||||
|
Loading…
Reference in New Issue
Block a user