From 317a9b3366d3ba09e08b27ae5344e0e5c8e885dd Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Mon, 6 Jul 2009 23:51:02 +0000 Subject: [PATCH] (trunk web) iPhone file inspector improvements --- web/javascript/torrent.js | 18 ++++++++++++++---- web/stylesheets/iphone.css | 9 --------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index fda4d1a48..4bee9a437 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -752,7 +752,8 @@ TorrentFile.prototype = { setWanted: function(wanted) { this._dirty = true; this._wanted = wanted; - this.element().toggleClass( 'skip', !wanted ); + if(!iPhone) + this.element().toggleClass( 'skip', !wanted ); var command = wanted ? 'files-wanted' : 'files-unwanted'; this._torrent._controller.changeFileCommand(command, this._torrent, this); }, @@ -812,9 +813,18 @@ TorrentFile.prototype = { } var prio; - if( x < 12 ) prio = -1; - else if( x < 23 ) prio = 0; - else prio = 1; + if(iPhone) + { + if( x < 8 ) prio = -1; + else if( x < 27 ) prio = 0; + else prio = 1; + } + else + { + if( x < 12 ) prio = -1; + else if( x < 23 ) prio = 0; + else prio = 1; + } this.setPriority( prio ); } }; diff --git a/web/stylesheets/iphone.css b/web/stylesheets/iphone.css index e420afe87..faab52a20 100644 --- a/web/stylesheets/iphone.css +++ b/web/stylesheets/iphone.css @@ -722,21 +722,12 @@ div.file_priority_control { cursor: pointer; } div.file_priority_control.normal { - background-position: left top; -} -div.file_priority_control.normal:hover { background-position: right top; } div.file_priority_control.high { - background-position: left -19px; -} -div.file_priority_control.high:hover { background-position: right -19px; } div.file_priority_control.low { - background-position: left -38px; -} -div.file_priority_control.low:hover { background-position: right -38px; } ul.single_file li.inspector_torrent_file_list_entry>.file_priority_control, li.inspector_torrent_file_list_entry.complete div.file_priority_control {