dojo.provide("earray.EarraySelect");
dojo.require("dijit.form.FilteringSelect");
dojo.declare(
"earray.EarraySelect",
dijit.form.FilteringSelect,
{
postMixInProperties: function(){
// FIXME: shouldn't this just be a call to inherited?
dijit.form.FilteringSelect.prototype.postMixInProperties.apply(this, arguments);
},
postCreate: function(){
dijit.form.FilteringSelect.prototype.postCreate.apply(this, arguments);
},
buildRendering: function(){
// Overrides `dijit._Templated.buildRendering`
this.inherited(arguments);
// Create a hidden node with the serialized value used for submit
// (as opposed to the displayed value).
// Passing in name as markup rather than calling dojo.create() with an attrs argument
// to make dojo.query(input[name=...]) work on IE. (see #8660)
this.valueNode = dojo.place("", this.textbox, "after");
},
_selectOption: function(/*Event*/ evt){
// summary:
// Menu callback function, called when an item in the menu is selected.
if(evt){
this._announceOption(evt.target);
}
this.closeDropDown();
/*This line is commented so that focus is placed on the begining
of the word
*/
//this._setCaretPos(this.focusNode, this.focusNode.value.length);
dijit.form._FormValueWidget.prototype._setValueAttr.call(this, this.value, true); // set this.value and fire onChange
}
}
);