The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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

Advanced search fix - editting searches with double quotes.

parent 8d5d03c6
No related merge requests found
...@@ -11,7 +11,7 @@ function addSearch(group, term, field) ...@@ -11,7 +11,7 @@ function addSearch(group, term, field)
// Build the new search // Build the new search
var inputIndex = $('#group'+group+' input').length; var inputIndex = $('#group'+group+' input').length;
var inputID = group+'_'+inputIndex; var inputID = group+'_'+inputIndex;
var newSearch = '<div class="search" id="search'+inputID+'"><div class="row"><div class="col-md-7"><input id="search_lookfor'+inputID+'" class="form-control" type="text" name="lookfor'+group+'[]" value="'+term+'"/></div>' var newSearch = '<div class="search" id="search'+inputID+'"><div class="row"><div class="col-md-7"><input id="search_lookfor'+inputID+'" class="form-control" type="text" name="lookfor'+group+'[]" value="'+term.replace(/"/g, '&quot;')+'"/></div>'
+ '<div class="col-md-4"><select id="search_type'+inputID+'" name="type'+group+'[]" class="form-control">'; + '<div class="col-md-4"><select id="search_type'+inputID+'" name="type'+group+'[]" class="form-control">';
for (var key in searchFields) { for (var key in searchFields) {
newSearch += '<option value="' + key + '"'; newSearch += '<option value="' + key + '"';
......
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