(trunk web) remote shouldn't know the internals of transmission

This commit is contained in:
Kevin Glowacz
2009-07-28 04:53:04 +00:00
parent 2220a40e84
commit 1901c44bf0
2 changed files with 13 additions and 8 deletions

View File

@@ -113,12 +113,21 @@ Transmission.prototype =
// Get preferences & torrents from the daemon
var tr = this;
this.remote.loadDaemonPrefs( );
this.loadDaemonPrefs( );
this.initalizeAllTorrents();
this.togglePeriodicRefresh( true );
},
loadDaemonPrefs: function(){
var tr = this;
this.remote.loadDaemonPrefs( function(data){
var o = data.arguments;
Prefs.getClutchPrefs( o );
tr.updatePrefs( o );
});
},
preloadImages: function() {
if (iPhone) {
this.loadImages(