bugfix: new 'buttononly' widget was registered to be processed

This commit is contained in:
Ralf Becker 2007-04-18 10:34:26 +00:00
parent 99c07f8452
commit 8ab5ef92a2

View File

@ -1169,11 +1169,11 @@
$onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').$cell['onchange']; $onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').$cell['onchange'];
} }
$html .= !$readonly ? $this->html->submit_button($form_name,$label,$onclick, $html .= !$readonly ? $this->html->submit_button($form_name,$label,$onclick,
strlen($label) <= 1 || $cell['no_lang'],$options,$img,$app,(($type=='buttononly') ? 'button' : 'submit')) : strlen($label) <= 1 || $cell['no_lang'],$options,$img,$app,$type == 'buttononly' ? 'button' : 'submit') :
$this->html->image($app,$ro_img); $this->html->image($app,$ro_img);
} }
$extra_label = False; $extra_label = False;
if (!$readonly) if (!$readonly && $type != 'buttononly') // input button, are never submitted back!
{ {
$GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type']; $GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type'];
if (strtolower($name) == 'cancel') if (strtolower($name) == 'cancel')