some improvements to advanced find
This commit is contained in:
parent
7b5d587a21
commit
b10a710a63
4 changed files with 48 additions and 43 deletions
|
|
@ -41,22 +41,17 @@ oml.ui.findForm = function(list) {
|
|||
query: data.value
|
||||
} : {}, function(result) {
|
||||
if (list || ui.updateResults) {
|
||||
updateResults();
|
||||
if (!list) {
|
||||
oml.UI.set({find: Ox.clone(data.value, true)});
|
||||
oml.$ui.findElement.updateElement();
|
||||
}
|
||||
oml.reloadLists();
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
.appendTo(that);
|
||||
|
||||
function updateResults() {
|
||||
if (list || ui.updateResults) {
|
||||
oml.reloadLists();
|
||||
} else {
|
||||
oml.UI.set({find: Ox.clone($filter.options('value'), true)});
|
||||
oml.$ui.findElement.updateElement();
|
||||
}
|
||||
}
|
||||
|
||||
that.getList = $filter.getList;
|
||||
that.value = $filter.value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue