2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

more builder crap

This commit is contained in:
Jacob Thornton
2012-01-26 16:41:28 -08:00
parent c31ac846d7
commit 12484a7471
3 changed files with 81 additions and 76 deletions
+13 -8
View File
@@ -185,25 +185,30 @@ $(function () {
// request built javascript
$('.download-btn').on('click', function () {
var comp = $("#components.download input:checked")
var css = $("#components.download input:checked")
.map(function () { return this.value })
.toArray()
, plug = $("#plugins.download input:checked")
, js = $("#plugins.download input:checked")
.map(function () { return this.value })
.toArray()
, vars = {}
$("#variables.download input")
.each(function () {
return $(this).val()
})
$.ajax({
type: 'POST'
, url: 'localhost:3000'
// , url: "http://bootstrap.herokuapp.com"
, dataType: 'jsonpi'
, params: {
branch: '2.0-wip'
, dir: 'js'
, filenames: names
, compress: buildTypes.first().hasClass('active')
}
, url: "http://bootstrap.herokuapp.com"
, js: js
, css: css
, vars: vars
}
})
})