Ticket #6021: ComboBox.js.patch
| File ComboBox.js.patch, 1.3 kB (added by guest, 10 months ago) |
|---|
-
ComboBox.js
41 41 // before doing further filtering based on searchAttr and the key. 42 42 query: {}, 43 43 44 // sort: Object 45 // A sort order that can be passed to the 'store' to sort the drop down. 46 sort: {}, 47 44 48 // autoComplete: Boolean 45 49 // If you type in a partial string, and then tab out of the <input> box, 46 50 // automatically copy the first entry displayed in the drop down list to … … 489 493 // create a new query to prevent accidentally querying for a hidden value from FilteringSelect's keyField 490 494 var query=this.query; 491 495 this._lastQuery=query[this.searchAttr]=key+"*"; 492 var dataObject=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase, deep:true}, query: query, onComplete:dojo.hitch(this, "_openResultList"), start:0, count:this.pageSize});496 var dataObject=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase, deep:true}, query: query, sort: this.sort, onComplete:dojo.hitch(this, "_openResultList"), start:0, count:this.pageSize}); 493 497 function nextSearch(dataObject, direction){ 494 498 dataObject.start+=dataObject.count*direction; 495 499 // #4091: tell callback the direction of the paging so the screen reader knows which menu option to shout