X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e358c96cac5953f33fec0570e68f99f61802a436..04bc6bdd39d67bcf9f63d8af4b067f1fafc06f8a:/WEB-INF/lib/form/Combobox.class.php diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index a421b66a..0a8bf89c 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -65,9 +65,8 @@ class Combobox extends FormElement { function getDataKeys() { return $this->mDataKeys; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - + function toStringControl() { + if ($this->id=="") $this->id = $this->name; $html = "\n\tmMultiple) $html .= " multiple"; - if ($this->mOnChange!="") - $html .= " onchange=\"$this->mOnChange\""; + if ($this->on_change!="") + $html .= " onchange=\"$this->on_change\""; - if ($this->mStyle!="") - $html .= " style=\"$this->mStyle\""; + if ($this->style!="") + $html .= " style=\"$this->style\""; - if (!$this->isEnable()) + if (!$this->isEnabled()) $html .= " disabled"; $html .= ">\n";