}
},
- /* 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)
{
case 'alertsloglink':
DimpCore.Growler.toggleLog();
- this.alertsloglinkUpdate();
+ $('alertsloglink').down('A').update(DimpCore.Growler.logVisible() ? DIMP.text.hidealog : DIMP.text.showalog);
break;
case 'applyfilterlink':
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));
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);