Changeset 114

Show
Ignore:
Timestamp:
05/11/08 04:53:40 (3 months ago)
Author:
felix
Message:

alignment with productuon env

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rapyd/components/fields/dataform_field.php

    r107 r114  
    257257    if (is_object($this->model)&& isset($this->db_name)) 
    258258    { 
     259      if (!in_array($this->db_name, $this->model->field_names)) 
     260      { 
     261        return true; 
     262      } 
    259263      if (isset($this->new_value)) 
    260264      { 
     
    273277  // -------------------------------------------------------------------- 
    274278 
     279  public function extra_output() 
     280  { 
     281    return '<span class="extra">'.$this->extra_output.'</span>'; 
     282  } 
     283 
     284  // -------------------------------------------------------------------- 
     285 
    275286  public function build() 
    276287  { 
     
    279290    $this->star = (!$this->status_is("show") AND $this->required) ? '&nbsp;*' : ''; 
    280291 
    281  
    282     $attributes = array('name','type','size','style','class','rows','cols'); 
     292    $attributes = array('onchange','name','type','size','style','class','rows','cols'); 
    283293 
    284294    foreach ($attributes as $attribute) 
     
    289299    if (!isset($this->attributes['id'])) 
    290300      $this->attributes['id'] = $this->name; 
    291  
     301    if (isset($this->css_class)) 
     302      $this->attributes['class'] = $this->css_class; 
    292303  } 
    293304