diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index 4e58d6b30..f6616b2ba 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -655,7 +655,7 @@ TorrentFile.prototype = { this.readAttributes(file_data); var li = document.createElement('li'); - li.classNameConst = 'inspector_torrent_file_list_entry ' + ((this._index%2)?'odd':'event'); + li.classNameConst = 'inspector_torrent_file_list_entry ' + ((this._index%2)?'odd':'even'); li.className = li.classNameConst; var wanted_div = document.createElement('div'); diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index a8b4df022..696a5432b 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -132,9 +132,8 @@ Transmission.prototype = } }, loadImages: function() { - for(var i = 0; i").attr("src", arguments[i]); - } + for( var i=0, row; row=arguments[i]; ++i ) + jQuery("").attr("src", row); }, /* @@ -610,13 +609,13 @@ Transmission.prototype = var tab_ids = $(tab).parent('#inspector_tabs').find('.inspector_tab').map( function() { return $(this).attr('id'); } ); - for( var i=0; i