diff options
| author | Eric Baer <[email protected]> | 2013-06-12 13:40:37 -0600 |
|---|---|---|
| committer | Eric Baer <[email protected]> | 2013-06-12 14:01:59 -0600 |
| commit | 6771be1cedc38b0f0a912082eb3c9d1ec54344e1 (patch) | |
| tree | 917634f87e7de7a8e7e440ef676dcd0b4ec1b15b /docs | |
| parent | 45c5b4e45c1d6479801dc205e13b350e334ebcd0 (diff) | |
| download | bootstrap-6771be1cedc38b0f0a912082eb3c9d1ec54344e1.tar.xz bootstrap-6771be1cedc38b0f0a912082eb3c9d1ec54344e1.zip | |
Docs Customize "Customize and Download" button not working properly
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 30a7c0d6e..90c7e68e6 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -90,9 +90,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") @@ -101,14 +102,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 |
