You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/03/19 19:55:04 UTC

svn commit: r387018 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Author: mmarinschek
Date: Sun Mar 19 10:55:02 2006
New Revision: 387018

URL: http://svn.apache.org/viewcvs?rev=387018&view=rev
Log:
added some Event.stop's

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js?rev=387018&r1=387017&r2=387018&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js Sun Mar 19 10:55:02 2006
@@ -377,9 +377,10 @@
             window.status = "";
         }.bindAsEventListener(this), false);
 
-        Event.observe(this.monthSpan, "click", function()
+        Event.observe(this.monthSpan, "click", function(event)
         {
             this._popUpMonth();
+            Event.stop(event);
         }.bind(this), false);
 
         this.captionSpan.appendChild(this.monthSpan);
@@ -402,9 +403,10 @@
             window.status = "";
         }.bindAsEventListener(this), false);
 
-        Event.observe(this.yearSpan, "click", function()
+        Event.observe(this.yearSpan, "click", function(event)
         {
             this._popUpYear();
+            Event.stop(event);
         }.bind(this), false);
 
         this.captionSpan.appendChild(this.yearSpan);
@@ -1168,6 +1170,7 @@
             var elem = Event.element(event);
             this.selectedDate.date = elem.datePointer;
             this._closeCalendar();
+            Event.stop(event);
         }.bindAsEventListener(this), false);
         Event.observe(dateLink, "mouseover", function(event)
         {