Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
matjemeisje committed Apr 10, 2017
1 parent 154f597 commit 8c3dcaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/whitelab.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var Whitelab = {
Whitelab.debug("assembleQueryParams");
Whitelab.debug(data);
var params = [];
var keys = ['patt', 'filter', 'within', 'view', 'group', 'offset', 'number', 'sample', 'samplenum', 'sampleseed'];
var keys = ['patt', 'gap_values_tsv', 'filter', 'within', 'view', 'group', 'offset', 'number', 'sample', 'samplenum', 'sampleseed'];
for (var k = 0; k < keys.length; k++) {
if (keys[k] in data && data[keys[k]] != null && data[keys[k]].length > 0) {
params.push(keys[k]+'='+encodeURIComponent(data[keys[k]]));
Expand Down
7 changes: 6 additions & 1 deletion app/assets/javascripts/whitelab.search.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ Whitelab.search = {
group = group.replace(/;/g, '%3B');
var page = $("#result-pane").data('query-page');
var params = Whitelab.assembleQueryParams({
'patt': $("#result-pane").data('query-patt'),
'patt': $("#result-pane").data('query-patt'),
'gap_values_tsv': $('#gap_values_tsv').length > 0 ? $('#gap_values_tsv').val() : null,
'filter': $("#result-pane").data('query-filter'),
'within': $("#result-pane").data('query-within'),
'view': $("#result-pane").data('query-view')+"",
Expand All @@ -517,6 +518,10 @@ Whitelab.search = {
'offset': "0",
'number': "50"
});
if ($('#gap_values_tsv').length > 0) {
console.log('gaps');
params['gap_values_tsv'] = $('#gap_values_tsv').val();
}
Whitelab.debug(params);
window.location = '/search/'+page+'?'+params+'#results';
}
Expand Down

0 comments on commit 8c3dcaf

Please sign in to comment.