mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
|
|
var oldAjax = jQuery.ajax;
|
|
|
|
jQuery.ajax = function( ) {
|
|
var jQXHR = oldAjax.apply( this, arguments );
|
|
|
|
// Be sure we got a jQXHR (e.g., not sync)
|
|
if ( jQXHR.promise ) {
|
|
migrateWarnFunc( jQXHR, "success", jQXHR.done,
|
|
"jQXHR.success is deprecated and removed" );
|
|
migrateWarnFunc( jQXHR, "error", jQXHR.fail,
|
|
"jQXHR.error is deprecated and removed" );
|
|
migrateWarnFunc( jQXHR, "complete", jQXHR.always,
|
|
"jQXHR.complete is deprecated and removed" );
|
|
}
|
|
|
|
return jQXHR;
|
|
};
|