}
},
+ /* 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)
{
return;
case 'alertsloglink':
- $('alertsloglink').down('A').update(DimpCore.Growler.toggleLog() ? DIMP.text.hidealog : DIMP.text.showalog);
+ DimpCore.Growler.toggleLog();
+ this.alertsloglinkUpdate();
break;
case 'applyfilterlink':
/* Click handler. */
DimpCore.clickHandler = DimpCore.clickHandler.wrap(DimpBase.clickHandler.bind(DimpBase));
-/* ContextSensitive functions. */
+/* ContextSensitive handlers. */
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));