update list on edit
This commit is contained in:
parent
0a95189a52
commit
c285022bca
1 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@ oml.ui.findForm = function(list) {
|
||||||
id: list.id,
|
id: list.id,
|
||||||
query: data.value
|
query: data.value
|
||||||
} : {}, function(result) {
|
} : {}, function(result) {
|
||||||
if (ui.updateAdvancedFindResults) {
|
if (list || ui.updateAdvancedFindResults) {
|
||||||
updateResults();
|
updateResults();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -45,8 +45,8 @@ oml.ui.findForm = function(list) {
|
||||||
.appendTo(that);
|
.appendTo(that);
|
||||||
|
|
||||||
function updateResults() {
|
function updateResults() {
|
||||||
if (list) {
|
if (list || ui.updateAdvancedFindResults) {
|
||||||
Ox.Request.clearCache(list.id);
|
Ox.Request.clearCache();
|
||||||
oml.$ui.list.reloadList();
|
oml.$ui.list.reloadList();
|
||||||
oml.$ui.filters.forEach(function($filter) {
|
oml.$ui.filters.forEach(function($filter) {
|
||||||
$filter.reloadList();
|
$filter.reloadList();
|
||||||
|
|
Loading…
Reference in a new issue