1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(trunk web) work around a context bug in jquery14

This commit is contained in:
Kevin Glowacz 2010-01-21 01:43:05 +00:00
parent 5f785b5a24
commit a807325f08

View file

@ -86,7 +86,7 @@ TransmissionRemote.prototype =
if( typeof async != 'boolean' )
async = true;
$.ajax( {
var ajaxSettings = {
url: RPC._Root,
type: 'POST',
contentType: 'json',
@ -94,10 +94,12 @@ TransmissionRemote.prototype =
cache: false,
data: $.toJSON(data),
beforeSend: function(XHR){ remote.appendSessionId(XHR) },
error: function(request, error_string, exception){ remote.ajaxError(request, error_string, exception, this) },
error: function(request, error_string, exception){ remote.ajaxError(request, error_string, exception, ajaxSettings) },
success: success,
async: async
} );
};
$.ajax( ajaxSettings );
},
loadDaemonPrefs: function( callback, async ) {