Skip to content
Snippets Groups Projects
Commit 863a4186 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Merge pull request #516 from jirislav/patch-3

Fixed IE bug while editing advanced search
parents aaef917f d6da6895
Branches
Tags
No related merge requests found
...@@ -13,7 +13,9 @@ function addSearch(group, fieldValues) ...@@ -13,7 +13,9 @@ function addSearch(group, fieldValues)
$newSearch.attr('id', 'search'+inputID); $newSearch.attr('id', 'search'+inputID);
$newSearch.find('input.form-control') $newSearch.find('input.form-control')
.attr('id', 'search_lookfor'+inputID) .attr('id', 'search_lookfor'+inputID)
.attr('name', 'lookfor'+group+'[]'); .attr('name', 'lookfor'+group+'[]')
.attr('value', '');
$newSearch.find('select.type option:first-child').attr('selected', 1);
$newSearch.find('select.type') $newSearch.find('select.type')
.attr('id', 'search_type'+inputID) .attr('id', 'search_type'+inputID)
.attr('name', 'type'+group+'[]'); .attr('name', 'type'+group+'[]');
...@@ -143,4 +145,4 @@ $(document).ready(function() { ...@@ -143,4 +145,4 @@ $(document).ready(function() {
$("option:selected").removeAttr("selected"); $("option:selected").removeAttr("selected");
$("#illustrated_-1").click(); $("#illustrated_-1").click();
}); });
}); });
\ No newline at end of file
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