mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX #3062: Fixed ondemand support for jQuery responses as well as prototype
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@65843 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
05e042427b
commit
e9853f0c41
@ -172,14 +172,14 @@
|
||||
* once we get rid of all uses of prototype, we can remove this
|
||||
*/
|
||||
function prototypeOnDemandHandler(xml, callback) {
|
||||
processOnDemandHandlers(xml, callback);
|
||||
processOnDemandHeaders(xml, callback);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Process the X-Include-CSS and X-Include-JS headers provided by the Requirements class
|
||||
*/
|
||||
function processOnDemandHandlers(xml, _ondemandComplete) {
|
||||
function processOnDemandHeaders(xml, _ondemandComplete) {
|
||||
var i;
|
||||
// CSS
|
||||
if(xml.getResponseHeader('X-Include-CSS')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user