Fix removing the "No Alerts" entry.
authorJan Schneider <jan@horde.org>
Wed, 26 May 2010 15:13:41 +0000 (17:13 +0200)
committerJan Schneider <jan@horde.org>
Wed, 26 May 2010 15:13:41 +0000 (17:13 +0200)
horde/js/growler.js

index a5d579c..e40cde8 100644 (file)
 
             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("&times;");