Skip to content

Commit

Permalink
fixed multiple parameter issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatih Erikli committed Oct 30, 2012
1 parent c8b31b7 commit a117d68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apiplayground/static/api_browser/js/app.js
Expand Up @@ -68,8 +68,12 @@ var APIBrowser = $.Class.extend({
fill_url_parameters: function (url_parameters, form_selector) {
$(url_parameters).change(function () {
var form = $(this).parents(form_selector);
var rendered_url = form.data("endpoint-url").replace(
$(this).data("token"), $(this).val());
var rendered_url = form.data("endpoint-url");

form.find("input[data-token]").each(function () {
rendered_url = rendered_url.replace($(this).data("token"), $(this).val());
});

form.attr("action", rendered_url)
})
},
Expand Down

0 comments on commit a117d68

Please sign in to comment.