Changeset 8856
- Timestamp:
- Jul 28, 2009, 4:53:08 AM (13 years ago)
- Location:
- trunk/web/javascript
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/transmission.js
r8855 r8856 114 114 // Get preferences & torrents from the daemon 115 115 var tr = this; 116 this.loadDaemonPrefs( ); 116 var async = false; 117 this.loadDaemonPrefs( async ); 117 118 this.initalizeAllTorrents(); 118 119 … … 120 121 }, 121 122 122 loadDaemonPrefs: function( ){123 loadDaemonPrefs: function( async ){ 123 124 var tr = this; 124 125 this.remote.loadDaemonPrefs( function(data){ … … 126 127 Prefs.getClutchPrefs( o ); 127 128 tr.updatePrefs( o ); 128 } );129 }, async ); 129 130 }, 130 131 -
trunk/web/javascript/transmission.remote.js
r8855 r8856 73 73 }, 74 74 75 sendRequest: function( data, success ) {75 sendRequest: function( data, success, async ) { 76 76 remote = this; 77 if( typeof async != 'boolean' ) 78 async = true; 79 77 80 $.ajax( { 78 81 url: RPC._Root, … … 84 87 beforeSend: function(XHR){ remote.appendSessionId(XHR) }, 85 88 error: function(request, error_string, exception){ remote.ajaxError(request, error_string, exception, this) }, 86 success: success 87 } ); 88 }, 89 90 loadDaemonPrefs: function( callback ) { 89 success: success, 90 async: async 91 } ); 92 }, 93 94 loadDaemonPrefs: function( callback, async ) { 91 95 var tr = this._controller; 92 96 var o = { method: 'session-get' }; 93 this.sendRequest( o, callback );97 this.sendRequest( o, callback, async ); 94 98 }, 95 99
Note: See TracChangeset
for help on using the changeset viewer.