Always show close button.
authorJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 14:50:31 +0000 (15:50 +0100)
committerJan Schneider <jan@horde.org>
Fri, 12 Feb 2010 14:50:31 +0000 (15:50 +0100)
horde/js/Growler.js

index eff6bc8..775fe76 100644 (file)
                 notice.addClassName(opts.className);
             }
 
-            if (opts.sticky) {
-                noticeExit = new Element('DIV', { className: 'GrowlerNoticeExit' }).update("&times;");
-                noticeExit.observe('click', removeNotice.curry(notice, opts));
-                notice.insert(noticeExit);
-            }
+            noticeExit = new Element('DIV', { className: 'GrowlerNoticeExit' }).update("&times;");
+            noticeExit.observe('click', removeNotice.curry(notice, opts));
+            notice.insert(noticeExit);
 
             if (!opts.header.empty()) {
                 notice.insert(new Element('DIV', { className: 'GrowlerNoticeHead' }).update(opts.header))