add autocomplete api

This commit is contained in:
j 2014-10-04 20:57:09 +02:00
commit a48f039e89
5 changed files with 62 additions and 16 deletions

View file

@ -131,7 +131,7 @@ oml.ui.findElement = function() {
function getAutocomplete() {
var key = !that
? ui._findState.key
: that.value()[ui._list ? 1 : 0],
: that.value()[1],
findKey = Ox.getObjectById(oml.config.findKeys, key);
return findKey && findKey.autocomplete ? function(value, callback) {
oml.api.autocomplete({
@ -220,4 +220,4 @@ oml.ui.findElement = function() {
return that;
};
};