Skip to content

Commit

Permalink
fixes #15363 - construct correct templates query for new hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
domcleal authored and ohadlevy committed Jun 14, 2016
1 parent 3ee38d9 commit 8e2a541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function template_info(div, url) {
// Use a post to avoid request URI too large issues with big forms
$.ajax({
type: "POST",
url: url + "&provisioning=" + build,
url: url + ((url.indexOf('?') == -1) ? '?' : '&') + "provisioning=" + build,
data: form,
success: function(response, status, xhr) {
$(div).html(response);
Expand Down

0 comments on commit 8e2a541

Please sign in to comment.