1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(trunk web) iPhone file inspector improvements

This commit is contained in:
Kevin Glowacz 2009-07-06 23:51:02 +00:00
parent f8ecd3ad7a
commit 317a9b3366
2 changed files with 14 additions and 13 deletions

View 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 );
}
};

View 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 {