(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
1 changed files with 3 additions and 2 deletions

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