0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-03 15:24:19 +01:00

getting closer....

This commit is contained in:
Jacob Thornton 2012-01-26 20:23:15 -08:00
parent 12484a7471
commit 1e9c2fb9d4

View File

@ -151,12 +151,13 @@ $(function () {
.attr('target', name) .attr('target', name)
$.each(opts.params, function(k, v) { $.each(opts.params, function(k, v) {
$('<input>') $('<input>')
.attr('type', 'hidden') .attr('type', 'hidden')
.attr('name', k) .attr('name', k)
.attr('value', v) .attr('value', typeof v == 'string' ? v : JSON.stringify(v))
.appendTo(form) .appendTo(form)
}); })
form.appendTo('body').submit() form.appendTo('body').submit()
} }
@ -195,13 +196,13 @@ $(function () {
$("#variables.download input") $("#variables.download input")
.each(function () { .each(function () {
return $(this).val() return vars[ $(this).prev().text() ] = $(this).val()
}) })
// , url: "http://bootstrap.herokuapp.com"
$.ajax({ $.ajax({
type: 'POST' type: 'POST'
, url: 'localhost:3000' , url: 'http://localhost:3000'
// , url: "http://bootstrap.herokuapp.com"
, dataType: 'jsonpi' , dataType: 'jsonpi'
, params: { , params: {
branch: '2.0-wip' branch: '2.0-wip'