diff --git a/static/js/findForm.js b/static/js/findForm.js index b7bd490..edd78be 100644 --- a/static/js/findForm.js +++ b/static/js/findForm.js @@ -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; -}; \ No newline at end of file +};