diff options
| author | Mark Otto <[email protected]> | 2013-06-12 16:59:22 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-06-12 16:59:22 -0700 |
| commit | 47f8ba98f3ba8241f4809e62c0f8af430a9ba421 (patch) | |
| tree | b2b2ec8c641bfc1a6f43233d600014b36312e872 /docs | |
| parent | 40751305f8beba8b769889bd0a8ac6e1af53648f (diff) | |
| parent | 6771be1cedc38b0f0a912082eb3c9d1ec54344e1 (diff) | |
| download | bootstrap-47f8ba98f3ba8241f4809e62c0f8af430a9ba421.tar.xz bootstrap-47f8ba98f3ba8241f4809e62c0f8af430a9ba421.zip | |
Merge pull request #8158 from baer/download-button-fix-proper
Docs "Customize and Download" button didn't send the correct parameters
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/js/application.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index db86701fb..b36fb7d61 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -82,9 +82,10 @@ }) // 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 }) .toArray() , js = $("#plugins input:checked") @@ -93,14 +94,14 @@ , vars = {} , img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png'] - $("#variables input") - .each(function () { - $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) + $("#less-variables input") + .each(function () { + $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) }) $.ajax({ 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' , params: { js: js |
