]> granicus.if.org Git - transmission/commitdiff
(trunk web) iPhone file inspector improvements
authorKevin Glowacz <kevin@glowacz.info>
Mon, 6 Jul 2009 23:51:02 +0000 (23:51 +0000)
committerKevin Glowacz <kevin@glowacz.info>
Mon, 6 Jul 2009 23:51:02 +0000 (23:51 +0000)
web/javascript/torrent.js
web/stylesheets/iphone.css

index fda4d1a4839fe3f904ea674b182540d40b261fec..4bee9a4370df266c7daef0a32a57ddd482413ff3 100644 (file)
@@ -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 );
        }
 };
index e420afe87797cac6e1e17831e9a020d43b55d0ff..faab52a2015ef2bf3df942ae2c89ac086d94b8a1 100644 (file)
@@ -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 {