Changeset 129
- Timestamp:
- 05/28/08 16:11:30 (3 months ago)
- Files:
-
- trunk/rapyd/components/fields/dataform_field.php (modified) (1 diff)
- trunk/rapyd/components/fields/input.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rapyd/components/fields/dataform_field.php
r114 r129 33 33 public $update_value = null; //default value for update 34 34 public $options = array(); //associative&multidim. array ($value => $description) 35 public $mask = null; 35 36 36 37 public $value = null; trunk/rapyd/components/fields/input.php
r108 r129 17 17 parent::build(); 18 18 19 //http://digitalbush.com/projects/masked-input-plugin 20 if (isset($this->mask)) 21 { 22 rpd_html::js('jquery/jquery.js'); 23 rpd_html::js('jquery/maskedinput.js'); 24 } 25 19 26 switch ($this->status) 20 27 { … … 34 41 case "modify": 35 42 $output = rpd_form::input($this->attributes, $this->value); 43 if (isset($this->mask)) 44 { 45 $output .= rpd_html::script(' 46 jQuery(function($){ 47 $("#'.$this->name.'").mask("'.$this->mask.'"); 48 });'); 49 } 36 50 break; 37 51