diff --git a/static/js/findForm.js b/static/js/findForm.js index 5a06523..3e04b57 100644 --- a/static/js/findForm.js +++ b/static/js/findForm.js @@ -20,7 +20,10 @@ oml.ui.findForm = function(list) { values: ui._lists.filter(function(list) { return Ox.contains(['library', 'static'], list.type); }).map(function(list) { - return {id: list.id, title: list.title}; + return { + id: list.id, + title: Ox.encodeHTMLEntities(list.title) + }; }) }]), list: list ? null : { @@ -37,7 +40,7 @@ oml.ui.findForm = function(list) { id: list.id, query: data.value } : {}, function(result) { - if (list || ui.updateAdvancedFindResults) { + if (list || ui.updateResults) { updateResults(); } }); @@ -46,7 +49,7 @@ oml.ui.findForm = function(list) { .appendTo(that); function updateResults() { - if (list || ui.updateAdvancedFindResults) { + if (list || ui.updateResults) { Ox.Request.clearCache(); oml.$ui.list.reloadList(); oml.$ui.filters.forEach(function($filter) {