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,
|
||||
query: data.value
|
||||
} : {}, function(result) {
|
||||
if (ui.updateAdvancedFindResults) {
|
||||
if (list || ui.updateAdvancedFindResults) {
|
||||
updateResults();
|
||||
}
|
||||
});
|
||||
|
@ -45,8 +45,8 @@ oml.ui.findForm = function(list) {
|
|||
.appendTo(that);
|
||||
|
||||
function updateResults() {
|
||||
if (list) {
|
||||
Ox.Request.clearCache(list.id);
|
||||
if (list || ui.updateAdvancedFindResults) {
|
||||
Ox.Request.clearCache();
|
||||
oml.$ui.list.reloadList();
|
||||
oml.$ui.filters.forEach(function($filter) {
|
||||
$filter.reloadList();
|
||||
|
@ -62,4 +62,4 @@ oml.ui.findForm = function(list) {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue