Changeset 12432
- Timestamp:
- May 15, 2011, 5:46:26 PM (12 years ago)
- Location:
- trunk/web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/index.html
r12119 r12432 551 551 <li id="context_verify">Verify Local Data</li> 552 552 <li class="separator"></li> 553 <li id="context_reannounce">Ask tracker for more peers</li> 554 <li class="separator"></li> 553 555 <li id="context_toggle_inspector">Show Inspector</li> 554 556 <li class="separator"></li> -
trunk/web/javascript/transmission.js
r12430 r12432 287 287 this.verifySelectedTorrents( ); 288 288 }, 289 contextReannounceSelected: function( ) { 290 this.reannounceSelectedTorrents( ); 291 }, 289 292 contextToggleInspector: function( ) { 290 293 this.toggleInspector( ); … … 308 311 context_removedata: function(e){ tr.contextRemoveDataSelected(e); }, 309 312 context_verify: function(e){ tr.contextVerifySelected(e); }, 313 context_reannounce: function(e){ tr.contextReannounceSelected(e); }, 310 314 context_toggle_inspector: function(e){ tr.contextToggleInspector(e); }, 311 315 context_select_all: function(e){ tr.contextSelectAll(e); }, … … 1933 1937 }, 1934 1938 1939 reannounceSelectedTorrents: function() { 1940 this.reannounceTorrents( this.getSelectedTorrents( ) ); 1941 }, 1942 1935 1943 startSelectedTorrents: function( ) { 1936 1944 this.startTorrents( this.getSelectedTorrents( ) ); … … 1954 1962 var tr = this; 1955 1963 this.remote.verifyTorrents( torrent_ids, function(){ tr.refreshTorrents(torrent_ids) } ); 1964 }, 1965 1966 reannounceTorrent: function( torrent ) { 1967 this.reannounceTorrents( [ torrent ] ); 1968 }, 1969 reannounceTorrents: function( torrents ) { 1970 var torrent_ids = jQuery.map(torrents, function(t) { return t.id(); } ); 1971 var tr = this; 1972 this.remote.reannounceTorrents( torrent_ids, function(){ tr.refreshTorrents(torrent_ids) } ); 1956 1973 }, 1957 1974 -
trunk/web/javascript/transmission.remote.js
r12119 r12432 245 245 this.sendTorrentActionRequests( 'torrent-verify', torrent_ids, callback ); 246 246 }, 247 reannounceTorrents: function( torrent_ids, callback ) { 248 this.sendTorrentActionRequests( 'torrent-reannounce', torrent_ids, callback ); 249 }, 247 250 addTorrentByUrl: function( url, options ) { 248 251 var remote = this;
Note: See TracChangeset
for help on using the changeset viewer.