(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() ? getDefaultMobileOptions()
: { width: 350, height: 400 }; : { width: 350, height: 400 };
o.autoOpen = false; o.autoOpen = false;
o.show = 'fade'; o.show = o.hide = 'fade';
o.hide = 'fade';
o.close = onDialogClosed; o.close = onDialogClosed;
e.tabbedDialog(o); e.tabbedDialog(o);

View File

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