Skip to content

Commit

Permalink
Merge pull request ManageIQ#5374 from himdel/pagination-query-string
Browse files Browse the repository at this point in the history
miqSelectPickerEvent - handle urls with non-empty query_string
  • Loading branch information
Dan Clarizio committed Nov 10, 2015
2 parents c75304b + 295b0e4 commit 917ea40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/miq_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,9 @@ function miqSelectPickerEvent(element, url, options){
var selected = $('#' + element).val();
options = typeof options !== 'undefined' ? options : {}
options['no_encoding'] = true;
miqJqueryRequest(url + '?' + element + '=' + escape(selected), options);

var firstarg = ! _.contains(url, '?');
miqJqueryRequest(url + (firstarg ? '?' : '&') + element + '=' + escape(selected), options);
return true;
});
}
Expand Down

0 comments on commit 917ea40

Please sign in to comment.