Skip to content

Commit

Permalink
extra context for custom templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Sep 25, 2014
1 parent f05874d commit da23aad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/wq/autocomplete.js
Expand Up @@ -70,6 +70,8 @@ auto.update = function($datalist, value) {
spin.stop();
if (!result.list)
result = {'list': result};
result.count = result.count || result.list.length;
result.multi = result.count > 1;
_cache[url] = result;
auto.render($datalist, result);
});
Expand Down

0 comments on commit da23aad

Please sign in to comment.