Skip to content

Commit

Permalink
miqSelectPickerEvent - handle urls with non-empty query_string
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Nov 10, 2015
1 parent bac5313 commit 295b0e4
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 295b0e4

Please sign in to comment.