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

(trunk web) #2917 "Turtle mode button tooltip" -- added to trunk for 1.92

This commit is contained in:
Charles Kerr 2010-03-01 16:35:54 +00:00
parent 446379a464
commit fe54fded77

View file

@ -827,13 +827,20 @@ Transmission.prototype =
},
updateTurtleButton: function() {
var w = $('#turtle_button');
var t;
if ( this[Prefs._TurtleState] ) {
$('#turtle_button').addClass('turtleEnabled');
$('#turtle_button').removeClass('turtleDisabled');
w.addClass('turtleEnabled');
w.removeClass('turtleDisabled');
t = "Click to disable Temporary Speed Limits";
} else {
$('#turtle_button').removeClass('turtleEnabled');
$('#turtle_button').addClass('turtleDisabled');
w.removeClass('turtleEnabled');
w.addClass('turtleDisabled');
t = "Click to enable Temporary Speed Limits";
}
t += " (" + this._prefs[RPC._TurtleUpSpeedLimit] + " kB/s up, "
+ this._prefs[RPC._TurtleDownSpeedLimit] + " kB/s down)";
w.attr( 'title', t );
},
/*--------------------------------------------