mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed jQuery.ondemand.js script to work with prototype.js (will probably need to be merged back to trunk for legacy purposes)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100853 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7dc9e50cbd
commit
3705809ce6
@ -167,4 +167,12 @@
|
||||
return _originalAjax(s);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
||||
/**
|
||||
* This is the on-demand handler used by our patched version of prototype.
|
||||
* once we get rid of all uses of prototype, we can remove this
|
||||
*/
|
||||
function prototypeOnDemandHandler(xml, status, callback) {
|
||||
jQuery.processOnDemandHeaders(xml, status, callback);
|
||||
}
|
2
thirdparty/prototype/prototype.js
vendored
2
thirdparty/prototype/prototype.js
vendored
@ -853,7 +853,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
|
||||
|
||||
// jquery ondemand integration patch
|
||||
if(typeof prototypeOnDemandHandler != 'undefined') {
|
||||
prototypeOnDemandHandler(this.transport, completeHandler);
|
||||
prototypeOnDemandHandler(this.transport, this.transport.status, completeHandler);
|
||||
} else {
|
||||
completeHandler();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user