1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

vulcanize

This commit is contained in:
Luke Pulverenti 2015-06-20 00:48:45 -04:00
parent 07df993238
commit 55e40bdcf7
52 changed files with 12309 additions and 33 deletions

View file

@ -0,0 +1,24 @@
(function (globalScope) {
globalScope.AjaxApi = {
param: function (params) {
return jQuery.param(params);
},
ajax: function (request) {
request.timeout = request.timeout || 30000;
try {
return jQuery.ajax(request);
} catch (err) {
var deferred = DeferredBuilder.Deferred();
deferred.reject();
return deferred.promise();
}
}
};
})(window);