diff --git a/static/js/findElement.js b/static/js/findElement.js index 3c5bae0..7b58fe6 100644 --- a/static/js/findElement.js +++ b/static/js/findElement.js @@ -46,7 +46,6 @@ oml.ui.findElement = function() { that.updateElement(); oml.$ui.findDialog = oml.ui.findDialog().open(); } else { - oml.$ui.findInput.options({ autocomplete: getAutocomplete(), placeholder: '' @@ -122,9 +121,7 @@ oml.ui.findElement = function() { }) .bindEvent({ oml_find: function() { - that.replaceElement( - 0, oml.$ui.findInSelect = renderFindInSelect() - ); + that.updateElement(); } }); @@ -210,6 +207,9 @@ oml.ui.findElement = function() { that.updateElement = function() { var findState = ui._findState; + that.replaceElement( + 0, oml.$ui.findInSelect = renderFindInSelect() + ); oml.$ui.findSelect.value(findState.key); oml.$ui.findInput.options( findState.key == 'advanced' ? {