Beispiel #1
0
 function html_inner()
 {
     $this->text->attributes['value'] = $this->args[$this->context[$this->long_name]['var']];
     $this->text->attributes['onfocus'] = "chse.activatemon({obj:this,objtype:'editor_text',static:" . $this->send . "});this.selectionStart=0;this.selectionEnd=this.value.length;clearTimeout(this.hide_timeout);var st=" . $this->send . ";st.name+='.fo';st.type+='.editor_hidden';chse.send_or_push({static:st,val:encodeURIComponent(this.value),c_id:this.id});";
     $this->text->attributes['onfocus'] .= "\$i('" . js_escape($this->div->id_gen()) . "').tabIndex=1000;";
     $this->text->attributes['onblur'] = "chse.latedeactivate(this);if(this.refresh_timeout)clearTimeout(this.refresh_timeout);this.hide_timeout=setTimeout('\$i(\\'" . js_escape($this->div->id_gen()) . "\\').style.display=\\'none\\';',200);";
     $this->div->attributes['onmousedown'] = 'event.preventDefault();event.stopPropagation();return false;$i(\'' . js_escape($this->text->id_gen()) . '\').focus();';
     $this->text->attributes['onkeypress'] = "editor_text_autosuggest_keypress(this,event,'" . js_escape($this->text->id_gen()) . "','" . js_escape($this->text->id_gen()) . "','" . js_escape($this->div->id_gen()) . "');";
     if (!isset($this->no_restore_focus)) {
         editor_generic::add_focus_restore($this->ed);
     }
     dom_void::html_inner();
 }
Beispiel #2
0
 function bootstrap()
 {
     $this->custom_id = $this->main_id();
     editor_generic::bootstrap_part();
     unset($this->custom_id);
     $this->main->attributes['onmouseover'] = 'opera_fix(this);';
     $this->main->attributes['onfocus'] = "tddcb_activate(this,'" . js_escape($this->listdiv->id_gen()) . "','" . js_escape($this->full_set) . "',{obj:this,objtype:'" . $this->etype . "',static:" . $this->send . "});";
     $this->main->attributes['onblur'] = "tddcb_deactivate(this,'" . js_escape($this->listdiv->id_gen()) . "');";
     $this->main->attributes['onkeypress'] = "return tddcb_keypress(event,this,'" . js_escape($this->listdiv->id_gen()) . "');";
     // focus persistence test
     if (!isset($this->no_restore_focus)) {
         editor_generic::add_focus_restore();
     }
 }
Beispiel #3
0
 function bootstrap()
 {
     editor_generic::bootstrap_part(false);
     //$this->attributes['onclick']="chse.send_or_push({static:".$this->send.",val:".$this->val_js.",c_id:this.id});";
     $this->attributes['onfocus'] = '';
     $this->attributes['onblur'] = '';
     // focus persistence test
     if (!isset($this->no_restore_focus)) {
         editor_generic::add_focus_restore();
     }
 }