mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Reset merge selectbox after choosing a file
This commit is contained in:
parent
27b9ae4ee3
commit
76497460f5
@ -784,7 +784,17 @@ function load_cal(url,id) {
|
||||
}
|
||||
if($options != '') {
|
||||
$options = '<option value="">'.lang('Insert in document')."</option>\n" . $options;
|
||||
$file[] = $this->_select_box('merge document...','merge',$options,$baseurl ? $baseurl.'&merge=' : '');
|
||||
$name = 'merge';
|
||||
$onchange="var win=egw_appWindow('calendar'); win.location=win.location+(win.location.search.length ? '&' : '?')+'".$name."='+this.value;this.value='';";
|
||||
$select = ' <select style="width: 100%;" name="'.$name.'" onchange="'.$onchange.'" title="'.
|
||||
lang('Select a %1',lang('merge document...')).'">'.
|
||||
$options."</select>\n";
|
||||
|
||||
$file[] = array(
|
||||
'text' => $select,
|
||||
'no_lang' => True,
|
||||
'link' => False
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user