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

(trunk web) make these self referential

This commit is contained in:
Kevin Glowacz 2009-06-07 04:46:17 +00:00
parent cbd95c8680
commit 8bff61ccd5

View file

@ -1103,7 +1103,7 @@ Transmission.prototype =
$('#torrent_inspector').hide();
if (iPhone) {
transmsision.deselectAll( );
this.deselectAll( );
$('body.inspector_showing').removeClass('inspector_showing');
this.hideiPhoneAddressbar();
} else {
@ -1415,11 +1415,12 @@ Transmission.prototype =
},
hideiPhoneAddressbar: function(timeInSeconds) {
var tr = this;
if( iPhone ) {
var delayLength = timeInSeconds ? timeInSeconds*1000 : 150;
// not currently supported on iPhone
if(/*document.body.scrollTop!=1 && */scroll_timeout==null) {
scroll_timeout = setTimeout("transmission.doToolbarHide()", delayLength);
scroll_timeout = setTimeout(function(){ tr.doToolbarHide(); }, delayLength);
}
}
},