mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
(trunk web) make these self referential
This commit is contained in:
parent
cbd95c8680
commit
8bff61ccd5
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue