Changeset 114
- Timestamp:
- 05/11/08 04:53:40 (3 months ago)
- Files:
-
- trunk/rapyd/components/fields/dataform_field.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/rapyd/components/fields/dataform_field.php
r107 r114 257 257 if (is_object($this->model)&& isset($this->db_name)) 258 258 { 259 if (!in_array($this->db_name, $this->model->field_names)) 260 { 261 return true; 262 } 259 263 if (isset($this->new_value)) 260 264 { … … 273 277 // -------------------------------------------------------------------- 274 278 279 public function extra_output() 280 { 281 return '<span class="extra">'.$this->extra_output.'</span>'; 282 } 283 284 // -------------------------------------------------------------------- 285 275 286 public function build() 276 287 { … … 279 290 $this->star = (!$this->status_is("show") AND $this->required) ? ' *' : ''; 280 291 281 282 $attributes = array('name','type','size','style','class','rows','cols'); 292 $attributes = array('onchange','name','type','size','style','class','rows','cols'); 283 293 284 294 foreach ($attributes as $attribute) … … 289 299 if (!isset($this->attributes['id'])) 290 300 $this->attributes['id'] = $this->name; 291 301 if (isset($this->css_class)) 302 $this->attributes['class'] = $this->css_class; 292 303 } 293 304