From: Michael M Slusarz Date: Tue, 25 May 2010 04:25:58 +0000 (-0600) Subject: Make opacity configurable; default to 80% X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d800b19dbcbb04abe0f3b8da905fbdcb2b7d102e;p=horde.git Make opacity configurable; default to 80% --- diff --git a/horde/js/growler.js b/horde/js/growler.js index 9e85e056d..65663f1fc 100644 --- a/horde/js/growler.js +++ b/horde/js/growler.js @@ -6,6 +6,7 @@ * 'header' - (string) The title that is displayed for the notice. * 'life' - (float) The number of seconds in which the notice remains visible. * 'log' - (boolean) If true, will log the entry. + * 'opacity' - (float) The default opacity of the notifications. * 'speedin' - (float) The speed in seconds in which the notice is shown. * 'speedout' - (float) The speed in seconds in which the notice is hidden. * 'sticky' - (boolean) Determines if the notice should always remain visible @@ -57,6 +58,7 @@ speedin: 0.3, speedout: 0.5, life: 5, + opacity: 0.8, sticky: false, className: '' }, @@ -218,7 +220,7 @@ this.growler.show().insert(notice); - new Effect.Opacity(notice, { to: 0.85, duration: opts.speedin }); + new Effect.Opacity(notice, { to: opts.opacity, duration: opts.speedin }); if (!opts.sticky) { removeNotice.delay(opts.life, notice, opts);