Skip to content
This repository has been archived by the owner on Jan 13, 2020. It is now read-only.

Commit

Permalink
fixed issue with changed LOV API. might revert this commit when LOV i…
Browse files Browse the repository at this point in the history
…s fixed as well
  • Loading branch information
LaurensRietveld committed Aug 30, 2014
1 parent 7611020 commit 30d7436
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions dist/yasqe.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/yasqe.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/yuidoc.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,12 @@ root.fetchFromLov = function(cm, partialToken, type, callback) {
url,
function(data) {
for (var i = 0; i < data.results.length; i++) {
results.push(data.results[i].uri);
if ($.isArray(data.results[i].uri) && data.results[i].uri.length > 0) {
results.push(data.results[i].uri[0]);
} else {
results.push(data.results[i].uri);
}

}
if (results.length < data.total_results
&& results.length < maxResults) {
Expand Down

0 comments on commit 30d7436

Please sign in to comment.