cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject mattkruse-lib/CalendarPopup.js — slight fix
Date Mon, 29 Mar 2004 23:05:28 GMT
It's a 3-line change, I don't know if it merits a full-up Bugzilla  
PATCH entry or not.  If someone thinks I should do this, please let me  
know and I will...

Index: CalendarPopup.js
===================================================================
RCS file:  
/home/cvspublic/cocoon-2.1/src/blocks/forms/samples/resources/ 
mattkruse-lib/CalendarPopup.js,v
retrieving revision 1.2
diff -u -r1.2 CalendarPopup.js
--- CalendarPopup.js    18 Mar 2004 06:16:04 -0000      1.2
+++ CalendarPopup.js    29 Mar 2004 23:02:57 -0000
@@ -1,3 +1,18 @@
+/*
+* Copyright 1999-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or  
implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
  // ===================================================================
  // Author: Matt Kruse <matt@mattkruse.com>
  // WWW: http://www.mattkruse.com/
@@ -363,6 +378,9 @@
                 alert("calendar.select: This function can only be used  
with displayType 'date' or 'week-end'");
                 return;
                 }
+       if (inputobj.disabled) {
+               return;
+       }
         if (inputobj.type!="text" && inputobj.type!="hidden" &&  
inputobj.type!="textarea") {
                 alert("calendar.select: Input object passed is not a  
valid form input object");
                 window.CP_targetInput=null;


Mime
View raw message