mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-30 19:20:23 +00:00
getting closer....
This commit is contained in:
parent
12484a7471
commit
1e9c2fb9d4
1 changed files with 6 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue