Changeset 12752
- Timestamp:
- Aug 26, 2011, 5:34:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/transmission.js
r12749 r12752 478 478 this.updateButtonStates(); 479 479 this.updateInspector(); 480 this.updateSelectedData();481 480 482 481 clearTimeout(this.selectionChangedTimer); … … 771 770 }, 772 771 773 /* Turn the periodic ajax torrents refresh on & off for the selected torrents */774 periodicTorrentUpdate: function(ids) {775 clearInterval (this._metadata_refresh);776 delete this._metadata_refresh;777 delete this._extra_data_ids;778 if (ids && ids.length) {779 this.refreshTorrents(ids);780 this._extra_data_ids = ids;781 var tr = this;782 var msec = this.getIntervalMsec(Prefs._RefreshRate, 3);783 this._metadata_refresh = setInterval(function() { tr.refreshTorrents(ids);}, msec);784 }785 },786 787 772 /* Turn the periodic ajax session refresh on & off */ 788 773 togglePeriodicSessionRefresh: function(enabled) { … … 817 802 args[RPC._TurtleState] = this[p]; 818 803 this.remote.savePrefs(args); 819 },820 821 updateSelectedData: function()822 {823 var ids = this.getSelectedTorrentIds();824 if (ids.length > 0)825 this.periodicTorrentUpdate(ids);826 else827 this.periodicTorrentUpdate(false);828 804 }, 829 805
Note: See TracChangeset
for help on using the changeset viewer.