Stop event after closing popup.
authorJan Schneider <jan@horde.org>
Mon, 31 May 2010 15:32:02 +0000 (17:32 +0200)
committerJan Schneider <jan@horde.org>
Mon, 31 May 2010 16:22:33 +0000 (18:22 +0200)
horde/js/calendar.js

index 5bd9035..c41b46f 100644 (file)
@@ -239,7 +239,7 @@ var Horde_Calendar =
 
         // Title bar.
         link = new Element('A', { href: '#', className: 'hordeCalendarClose' }).insert('x');
-        link.observe('click', this.hideCal.bind(this));
+        link.observe('click', function(e) { this.hideCal(); e.stop(); }.bind(this));
         thead.insert(new Element('TR').insert(new Element('TD', { colSpan: 7, className: 'rightAlign' }).insert(link)));
 
         // Year.