mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk web) #2772 "Even after a magnet link gets metainfo, the Web GUI doesn't use that metainfo" -- fixed in trunk for 1.90
This commit is contained in:
@@ -1358,6 +1358,27 @@ Transmission.prototype =
|
||||
this.setFilter( Prefs._FilterAll );
|
||||
},
|
||||
|
||||
refreshMetaData: function(ids) {
|
||||
var tr = this;
|
||||
this.remote.getMetaDataFor(ids, function(active, removed){ tr.updateMetaData(active); });
|
||||
},
|
||||
|
||||
updateMetaData: function( torrents )
|
||||
{
|
||||
var tr = this;
|
||||
var refresh_files_for = [ ];
|
||||
jQuery.each( torrents, function( ) {
|
||||
var t = tr._torrents[ this.id ];
|
||||
if( t ) {
|
||||
t.refreshMetaData( this );
|
||||
if( t.isSelected( ) )
|
||||
refresh_files_for.push( t.id( ) );
|
||||
}
|
||||
} );
|
||||
if( refresh_files_for.length > 0 )
|
||||
tr.remote.loadTorrentFiles( refresh_files_for );
|
||||
},
|
||||
|
||||
refreshTorrents: function(ids) {
|
||||
var tr = this;
|
||||
if (!ids)
|
||||
|
||||
Reference in New Issue
Block a user