diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 898a49d9a9..de2382b2ee 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -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 + } }) }) diff --git a/docs/download.html b/docs/download.html index a81f31cebf..5b2b716d7e 100644 --- a/docs/download.html +++ b/docs/download.html @@ -93,51 +93,51 @@