Ticket #4417: 4417.patch
| File 4417.patch, 1.2 kB (added by doughays, 5 months ago) |
|---|
-
form/ComboBox.js
513 513 if(!this._popupWidget){ 514 514 var popupId = this.id + "_popup"; 515 515 this._popupWidget = new dijit.form._ComboBoxMenu({ 516 store: this.store, 516 517 onChange: dojo.hitch(this, this._selectOption), 517 518 id:popupId 518 519 }); … … 780 781 dojo.forEach(results, function(item, i){ 781 782 var menuitem = this._createOption(item, labelFunc); 782 783 menuitem.className = "dijitReset dijitMenuItem"; 783 dojo.attr(menuitem, "id", this. id + i);784 dojo.attr(menuitem, "id", this.store.getValue(item, "id") || (this.id + i)); 784 785 this.domNode.insertBefore(menuitem, this.nextButton); 785 786 }, this); 786 787 // display "Next . . ." button … … 1059 1060 getValue: function( /* item */ item, 1060 1061 /* attribute-name-string */ attribute, 1061 1062 /* value? */ defaultValue){ 1062 return (attribute == " value") ? item.value : (item.innerText || item.textContent || '');1063 return (attribute == "id")? item.id : ((attribute == "value") ? item.value : (item.innerText || item.textContent || '')); 1063 1064 }, 1064 1065 1065 1066 isItemLoaded: function(/* anything */ something) {