diff options
| author | Jacob Thornton <[email protected]> | 2012-01-26 20:23:15 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-26 20:23:15 -0800 |
| commit | 1e9c2fb9d4a033304b5aa71d269af9f68eb72670 (patch) | |
| tree | 5eb2dbd401d96ee47f4c9719d7e2e6a348f1631e /docs | |
| parent | 12484a7471513f38be02e8420db3b09842968562 (diff) | |
| download | bootstrap-1e9c2fb9d4a033304b5aa71d269af9f68eb72670.tar.xz bootstrap-1e9c2fb9d4a033304b5aa71d269af9f68eb72670.zip | |
getting closer....
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/application.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index de2382b2e..2315cdaa8 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -151,12 +151,13 @@ $(function () { .attr('target', name) $.each(opts.params, function(k, v) { + $('<input>') .attr('type', 'hidden') .attr('name', k) - .attr('value', v) + .attr('value', typeof v == 'string' ? v : JSON.stringify(v)) .appendTo(form) - }); + }) form.appendTo('body').submit() } @@ -195,13 +196,13 @@ $(function () { $("#variables.download input") .each(function () { - return $(this).val() + return vars[ $(this).prev().text() ] = $(this).val() }) +// , url: "http://bootstrap.herokuapp.com" $.ajax({ type: 'POST' - , url: 'localhost:3000' - // , url: "http://bootstrap.herokuapp.com" + , url: 'http://localhost:3000' , dataType: 'jsonpi' , params: { branch: '2.0-wip' |
