From b0b6c27bf1fe88250dac272b3d719ebb94ef960d Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Mon, 19 Jun 2017 19:11:45 +0300 Subject: [PATCH] Fix editing of advanced search with Internet Explorer. (#993) --- themes/bootstrap3/js/advanced_search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/js/advanced_search.js b/themes/bootstrap3/js/advanced_search.js index 7626ad052b7..379df958453 100644 --- a/themes/bootstrap3/js/advanced_search.js +++ b/themes/bootstrap3/js/advanced_search.js @@ -12,7 +12,7 @@ function addSearch(group, _fieldValues) { $newSearch.find('input.form-control') .attr('id', 'search_lookfor' + inputID) .attr('name', 'lookfor' + group + '[]') - .attr('value', ''); + .val(''); $newSearch.find('select.adv-term-type option:first-child').attr('selected', 1); $newSearch.find('select.adv-term-type') .attr('id', 'search_type' + inputID) @@ -21,7 +21,7 @@ function addSearch(group, _fieldValues) { .attr('onClick', 'return deleteSearch(' + group + ',' + groupLength[group] + ')'); // Preset Values if (typeof fieldValues.term !== "undefined") { - $newSearch.find('input.form-control').attr('value', fieldValues.term); + $newSearch.find('input.form-control').val(fieldValues.term); } if (typeof fieldValues.field !== "undefined") { $newSearch.find('select.adv-term-type option[value="' + fieldValues.field + '"]').attr('selected', 1); -- GitLab