Skip to content
Snippets Groups Projects
Commit b0b6c27b authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix editing of advanced search with Internet Explorer. (#993)

parent a5146018
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment