[phplib-dev] cvs commit From: uw (phplib-dev <email protected>)
Date: 01/22/01

From: uw
Date: Mon Jan 22 22:29:45 2001
Modified files:
      php-lib/php/form/form_element.inc
      php-lib/php/form/form_element_date.inc

Log message:
Fixed a JavaScript "now" button bug.

Index: php-lib/php/form/form_element.inc
diff -u php-lib/php/form/form_element.inc:1.10 php-lib/php/form/form_element.inc:1.11
--- php-lib/php/form/form_element.inc:1.10 Sun Jan 14 21:08:40 2001
+++ php-lib/php/form/form_element.inc Mon Jan 22 22:29:13 2001
@@ -3,7 +3,7 @@
 * Superclass of all form elements.
 *
 *  <email protected> Ulf Wendel <uw <email protected>>
-*  <email protected> $Id: form_element.inc,v 1.10 2001/01/14 20:08:40 uw Exp $
+*  <email protected> $Id: form_element.inc,v 1.11 2001/01/22 21:29:13 uw Exp $
 *  <email protected> public
 *  <email protected> Form
 *  <email protected>
Index: php-lib/php/form/form_element_date.inc
diff -u php-lib/php/form/form_element_date.inc:1.11 php-lib/php/form/form_element_date.inc:1.12
--- php-lib/php/form/form_element_date.inc:1.11 Sun Jan 14 21:08:42 2001
+++ php-lib/php/form/form_element_date.inc Mon Jan 22 22:29:13 2001
@@ -5,14 +5,14 @@
 * Use this meta element to make sure that the user enters a valid date.
 *
 *  <email protected> Ulf Wendel <uw <email protected>>
-*  <email protected> $Id: form_element_date.inc,v 1.11 2001/01/14 20:08:42 uw Exp $
+*  <email protected> $Id: form_element_date.inc,v 1.12 2001/01/22 21:29:13 uw Exp $
 *  <email protected> Form
 */
 class form_element_date extends form_element {
 
         var $required_fields = array (
                                                                                                                                         "format" => "string"
- );
+ );
                                                                                                                                 
 
         var $optional_fields = array (
@@ -36,7 +36,7 @@
         *
         * The format string implements most of the features date() offers.
         *  <email protected> string
- */
+ */
         var $format = "";
         
         /**
@@ -337,7 +337,7 @@
         
         function generateButton() {
                 
- return sprintf('<input type="submit" name="%s_button" value="%s" onClick="form_date_now(\'%s_\'); return false;">',
+ return sprintf('<input type="submit" name="%s_button" value="%s" onClick="form_date_now(\'%s\'); return false;">',
                                                                                 $this->name,
                                                                                 $this->now,
                                                                                 $this->name
@@ -409,7 +409,7 @@
         
         /**
         *  <email protected> string Elementname Suffix
- */
+
         function getJSonActivation($name) {
                 
                 if ("strong" == $this->js_mode && $this->form_name)
@@ -420,7 +420,8 @@
                                                                                 );
 
         } // end func getJSonActivation
-
+ */
+
         function getJSvalue() {
         
                 $js = 'function form_date(f, e) {
@@ -475,7 +476,7 @@
                                                         $format,
                                                         $this->form_name
                                                 );
-
+
                 return array($js, "form_date_now", "JavaScript1.2");
         } // end func getExtraJS
         

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>