diff options
| author | XhmikosR <[email protected]> | 2014-03-28 20:08:42 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-04-09 10:15:02 +0300 |
| commit | 7950c0ff0ae216fbcb7f24f3fd93eae34ba6b4a6 (patch) | |
| tree | 26ac7cda4d7b13df665fe01a279e8eb97b479c63 | |
| parent | 3f9076399536adac4bd34e9b0e666ab12e5d0b53 (diff) | |
| download | bootstrap-7950c0ff0ae216fbcb7f24f3fd93eae34ba6b4a6.tar.xz bootstrap-7950c0ff0ae216fbcb7f24f3fd93eae34ba6b4a6.zip | |
Add the jquery check in customizer's output.
| -rw-r--r-- | docs/assets/js/_src/customizer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/assets/js/_src/customizer.js b/docs/assets/js/_src/customizer.js index 201f6e178..5494aa527 100644 --- a/docs/assets/js/_src/customizer.js +++ b/docs/assets/js/_src/customizer.js @@ -295,6 +295,8 @@ window.onload = function () { // wait for load in a dumb way because B-0 function generateJS(preamble) { var $checked = $('#plugin-section input:checked') + var jqueryCheck = 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n' + if (!$checked.length) return false var js = $checked @@ -302,6 +304,8 @@ window.onload = function () { // wait for load in a dumb way because B-0 .toArray() .join('\n') + js = jqueryCheck + js + return { 'bootstrap.js': preamble + js, 'bootstrap.min.js': preamble + cw + uglify(js) |
