public function __construct($name = 'editablecombobox', $value = null, $size = 0, $action = null)
 {
     insert_javascript_for_editable_combobox();
     parent::__construct($name, $value, $action);
     parent::addAction('onfocus', 'CEditableComboBoxInit(this);');
     parent::addAction('onchange', 'CEditableComboBoxOnChange(this, ' . $size . ');');
 }
 public function __construct($name = 'editablecombobox', $value = null, $size = null, $action = null)
 {
     insert_javascript_for_editable_combobox();
     parent::__construct($name, $value, $action);
     parent::addAction('onfocus', 'CEditableComboBoxInit(this);');
     $width = $size == ZBX_TEXTBOX_STANDARD_SIZE ? ZBX_TEXTAREA_STANDARD_WIDTH : null;
     parent::addAction('onchange', 'CEditableComboBoxOnChange(this, ' . CJs::encodeJson($size) . ', ' . CJs::encodeJson($width) . ');');
     // prevent Firefox remembering selected option on page refresh
     $this->setAttribute('autocomplete', 'off');
 }