Fix sorting of autocomplete tags dropdown (since Fx9 or so)
This commit is contained in:
parent
cd39b5d0e4
commit
66bfaaae13
|
@ -90,7 +90,7 @@ ZoteroAutoComplete.prototype.startSearch = function(searchString, searchParam, p
|
|||
var resultsCallback = function (results) {
|
||||
var collation = self._zotero.getLocaleCollation();
|
||||
results.sort(function(a, b) {
|
||||
return collation.compareString(1, a, b);
|
||||
return collation.compareString(1, a.val, b.val);
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
@ -208,6 +208,11 @@ ZoteroAutoComplete.prototype.startSearch = function(searchString, searchParam, p
|
|||
// Disable asynchronous until we figure out the hangs
|
||||
if (true) {
|
||||
var rows = this._zotero.DB.query(sql, sqlParams);
|
||||
|
||||
if (resultsCallback) {
|
||||
resultsCallback(rows);
|
||||
}
|
||||
|
||||
var results = [];
|
||||
var comments = [];
|
||||
for each(var row in rows) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user