mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
(trunk web) work around a context bug in jquery14
This commit is contained in:
parent
5f785b5a24
commit
a807325f08
1 changed files with 5 additions and 3 deletions
|
@ -86,7 +86,7 @@ TransmissionRemote.prototype =
|
||||||
if( typeof async != 'boolean' )
|
if( typeof async != 'boolean' )
|
||||||
async = true;
|
async = true;
|
||||||
|
|
||||||
$.ajax( {
|
var ajaxSettings = {
|
||||||
url: RPC._Root,
|
url: RPC._Root,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
contentType: 'json',
|
contentType: 'json',
|
||||||
|
@ -94,10 +94,12 @@ TransmissionRemote.prototype =
|
||||||
cache: false,
|
cache: false,
|
||||||
data: $.toJSON(data),
|
data: $.toJSON(data),
|
||||||
beforeSend: function(XHR){ remote.appendSessionId(XHR) },
|
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,
|
success: success,
|
||||||
async: async
|
async: async
|
||||||
} );
|
};
|
||||||
|
|
||||||
|
$.ajax( ajaxSettings );
|
||||||
},
|
},
|
||||||
|
|
||||||
loadDaemonPrefs: function( callback, async ) {
|
loadDaemonPrefs: function( callback, async ) {
|
||||||
|
|
Loading…
Reference in a new issue