Ignore:
Timestamp:
01/08/09 16:11:54 (15 years ago)
Author:
niltonneto
Message:

Resolve #390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r362 r583  
    43944394                        $var['category'] = Array( 
    43954395                                'field' => lang('Category'), 
    4396                                 'data'  => '<select name="categories[]" multiple size="5">'.$this->cat->formated_list('select','all',$check_cats,True).'</select>' 
     4396                                'data'  => '<select name="categories[]" onchange="javascript:updateTitleField(this)" multiple size="5">'.$this->cat->formated_list('select','all',$check_cats,True).'</select>' 
    43974397                        ); 
    43984398 
     
    44604460                        ); 
    44614461 
    4462 // Access 
     4462                        // Access 
    44634463                        $var['access'] = Array( 
    4464                                 'field' => lang('Private'), 
    4465                                 'data'  => '<input type="checkbox" name="cal[private]" value="private"'.(!$event['public']?' checked':'').'>' 
    4466                         ); 
     4464                                'field' => lang('Type'), 
     4465                                'data'  => '<select onchange="javascript:changeViewMode(this.value);" id="cal[type]" name="cal[type]"><option value="normal">'.lang('Normal').'</option><option value="private" '.(!$event['public']?'SELECTED':'').' >'. lang('Private').'</option><option value="hourAppointment" '.($event['type'] == 'H'?'SELECTED':'').' >'.lang('Hours Appointment').'</option></select>' 
     4466                        ); //event['public'] 
    44674467 
    44684468// Participants 
     
    47514751                                'data'  => '<input name="cal[recur_interval]" size="4" maxlength="4" value="'.$event['recur_interval'].'">' 
    47524752                        ); 
     4753//                      $this->output_template_array($p,'row','list',Array('data' => '<script src="simple_show_hide.js" type="text/javascript"></script>')); 
    47534754 
    47544755                        if (!isset($this->fields)) 
     
    47584759                                $this->stock_fields = &$this->custom_fields->stock_fields; 
    47594760                        } 
     4761                        $this->output_template_array($p,'row','list',$var['access']); 
     4762                        unset($var['access']); 
     4763 
    47604764                        $preserved = False; 
    47614765                        foreach($this->fields as $field => $data) 
     
    47774781                                                        case 'recure_type': 
    47784782                                                                $p->set_var('tr_color',$this->theme['th_bg']); 
    4779                                                                 $p->set_var('hr_text','<center><b>'.lang('Repeating Event Information').'</b></center>'); 
     4783                                                                $p->set_var('hr_text','<center name="cal[rpt_label]"><b>'.lang('Repeating Event Information').'</b></center>'); 
    47804784                                                                $p->parse('row','hr',True); 
    47814785                                                                $this->output_template_array($p,'row','list',$var['recure_type']); 
     
    48694873                        $p->set_var('cancel_button',$cancel_button); 
    48704874                        $p->pparse('out','edit_entry'); 
     4875                        echo "<script src='calendar/templates/celepar/js/edit.js' type='text/javascript'></script>"; 
     4876                        echo "<script>var type=document.getElementById('cal[type]'); changeViewMode(type.value);</script>"; 
     4877 
    48714878                         
    48724879                } 
Note: See TracChangeset for help on using the changeset viewer.