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. 
 * 
 * @author              Ulf Wendel <[EMAIL PROTECTED]>
-* @version     $Id: form_element.inc,v 1.10 2001/01/14 20:08:40 uw Exp $
+* @version     $Id: form_element.inc,v 1.11 2001/01/22 21:29:13 uw Exp $
 * @access      public
 * @package     Form
 * @abstract
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.
 *
 * @author        Ulf Wendel <[EMAIL PROTECTED]>
-* @version  $Id: form_element_date.inc,v 1.11 2001/01/14 20:08:42 uw Exp $
+* @version  $Id: form_element_date.inc,v 1.12 2001/01/22 21:29:13 uw Exp $
 * @package     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.
        * @var  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 @@
        
        /**
        * @param        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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to