From: Michael M Slusarz Date: Tue, 2 Feb 2010 17:31:28 +0000 (-0700) Subject: Revert alertslog changes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e820ee9aef09f070879adae0f0a8490df2c426e2;p=horde.git Revert alertslog changes Looks too much like an unseen mail count. Tweak error display - show for longer but don't make sticky. --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 2b3ef0172..c9923f292 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -1682,13 +1682,6 @@ var DimpBase = { } }, - /* Growler handler */ - alertsloglinkUpdate: function() - { - var lsize = DimpCore.Growler.logSize(); - $('alertsloglink').down('A').update((DimpCore.Growler.logVisible() ? DIMP.text.hidealog : DIMP.text.showalog) + (lsize ? (' (' + DimpCore.Growler.logSize() + ')') : '')); - }, - /* Keydown event handler */ keydownHandler: function(e) { @@ -1973,7 +1966,7 @@ var DimpBase = { case 'alertsloglink': DimpCore.Growler.toggleLog(); - this.alertsloglinkUpdate(); + $('alertsloglink').down('A').update(DimpCore.Growler.logVisible() ? DIMP.text.hidealog : DIMP.text.showalog); break; case 'applyfilterlink': @@ -3159,9 +3152,6 @@ DimpCore.clickHandler = DimpCore.clickHandler.wrap(DimpBase.clickHandler.bind(Di DimpCore.contextOnClick = DimpCore.contextOnClick.wrap(DimpBase.contextOnClick.bind(DimpBase)); DimpCore.contextOnShow = DimpCore.contextOnShow.wrap(DimpBase.contextOnShow.bind(DimpBase)); -/* Growler listener. */ -document.observe('Growler:created', DimpBase.alertsloglinkUpdate.bind(DimpBase)); - /* Extend AJAX exception handling. */ DimpCore.doActionOpts.onException = DimpCore.doActionOpts.onException.wrap(DimpBase.onAjaxException.bind(DimpBase)); diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index 6d5a9aa56..d1d152240 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -219,9 +219,8 @@ var DimpCore = { case 'imp.redirect': this.Growler.growl(m.message, { className: m.type.replace('.', '-'), - life: 8, - log: log, - sticky: m.type == 'horde.error' + life: (m.type == 'horde.error' ? 12 : 8), + log: log }); } }, this);