mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-22 13:13:03 +02:00
Docs Customize "Customize and Download" button not working properly
This commit is contained in:
@@ -90,9 +90,10 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
// request built javascript
|
// request built javascript
|
||||||
$('.download-btn .btn').on('click', function () {
|
$('.bs-customize-download .btn').on('click', function (e) {
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
var css = $("#components input:checked")
|
var css = $("#less input:checked")
|
||||||
.map(function () { return this.value })
|
.map(function () { return this.value })
|
||||||
.toArray()
|
.toArray()
|
||||||
, js = $("#plugins input:checked")
|
, js = $("#plugins input:checked")
|
||||||
@@ -101,14 +102,14 @@
|
|||||||
, vars = {}
|
, vars = {}
|
||||||
, img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']
|
, img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']
|
||||||
|
|
||||||
$("#variables input")
|
$("#less-variables input")
|
||||||
.each(function () {
|
.each(function () {
|
||||||
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
|
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
|
||||||
})
|
})
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST'
|
type: 'POST'
|
||||||
, url: /\?dev/.test(window.location) ? 'http://localhost:3000' : 'http://bootstrap.herokuapp.com'
|
, url: /localhost/.test(window.location) ? 'http://localhost:9001' : 'http://bootstrap.herokuapp.com'
|
||||||
, dataType: 'jsonpi'
|
, dataType: 'jsonpi'
|
||||||
, params: {
|
, params: {
|
||||||
js: js
|
js: js
|
||||||
|
Reference in New Issue
Block a user