(trunk web) ...and, also make sure that the three dialogs all use the same effects

This commit is contained in:
Jordan Lee 2011-09-15 05:27:22 +00:00
parent 2dbdeaec95
commit d00ba19cae
2 changed files with 10 additions and 7 deletions

View File

@ -184,8 +184,7 @@ function PrefsDialog(remote) {
? getDefaultMobileOptions()
: { width: 350, height: 400 };
o.autoOpen = false;
o.show = 'fade';
o.hide = 'fade';
o.show = o.hide = 'fade';
o.close = onDialogClosed;
e.tabbedDialog(o);

View File

@ -657,7 +657,11 @@ Transmission.prototype =
case 'about-button':
o = 'Transmission ' + this.serverVersion;
$('#about-dialog #about-title').html(o);
$('#about-dialog').dialog({'title':'About'});
$('#about-dialog').dialog({
title: 'About',
show: 'fade',
hide: 'fade'
});
break;
case 'homepage':
@ -1669,10 +1673,10 @@ Transmission.prototype =
this.hideMobileAddressbar();
this.togglePeriodicStatsRefresh(true);
$('#stats-dialog').dialog({
'close': $.proxy(this.onStatsDialogClosed,this),
'show': 'fade',
'hide': 'fade',
'title': 'Statistics'
close: $.proxy(this.onStatsDialogClosed,this),
show: 'fade',
hide: 'fade',
title: 'Statistics'
});
},