From e85dce593ee7b48726701ab0d4820cb2ba1f15cc Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 26 May 2010 17:13:41 +0200 Subject: [PATCH] Fix removing the "No Alerts" entry. --- horde/js/growler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/js/growler.js b/horde/js/growler.js index a5d579cc3..e40cde82f 100644 --- a/horde/js/growler.js +++ b/horde/js/growler.js @@ -209,8 +209,8 @@ if (opts.log && this.growlerlog) { tmp = this.growlerlog.down('DIV UL'); - if (tmp.down().hasClassName('GrowlerNoAlerts')) { - tmp.down().remove(); + if (tmp.down('.GrowlerNoAlerts')) { + tmp.down('.GrowlerNoAlerts').remove(); } log = new Element('LI', { className: opts.className.empty() ? null : opts.className }).insert(msg).insert(new Element('SPAN', { className: 'GrowlerAlertDate'} ).insert('[' + (new Date).toLocaleString() + ']')); logExit = new Element('DIV', { className: 'GrowlerNoticeExit' }).update("×"); -- 2.11.0