Skip to content

Commit

Permalink
Dev: Fixed issue : lack of css for slider
Browse files Browse the repository at this point in the history
Dev: Update to bootstrap-slider 9.7.0
Dev: Add LIMESURVEY.md integration information
  • Loading branch information
Shnoulle committed Jan 7, 2017
1 parent 5ec8df7 commit 2476b52
Show file tree
Hide file tree
Showing 8 changed files with 396 additions and 10 deletions.
20 changes: 20 additions & 0 deletions third_party/bootstrap-slider/CHANGELOG.md
@@ -1,3 +1,23 @@
9.7.0 / 2017-01-05
==================
* **Performance Enhancement** Use passive event listeners for touch-enabled devices. [See here for further details](https://github.com/seiyria/bootstrap-slider/pull/680). Thanks to [Chris Hallberg](https://github.com/crhallberg).

Tooling Update / 2017-01-05
==================
* Add an explicit `grunt lint` command to run Lint check on all source files and execute it in the NPM `pretest` script.

9.6.2 / 2017-01-04
==================
* Updating current year references in license from 2016 -> 2017.

Tooling Update / 2017-01-04
==================
* Adds in linting for SASS and LESS files in order to catch common syntax errors at CI step versus compile time.

9.6.1 / 2017-01-04
==================
* **Bug Fix:** Resolve issue with SASS file compilation. [See here for further details](https://github.com/seiyria/bootstrap-slider/issues/683). Thanks to [Schepotin](https://github.com/Schepotin) for reporting.

9.6.0 / 2017-01-03
==================
* **New Feature:** Adds ability to set direction (using HTML5 `dir` attribute). [See here for further details](https://github.com/seiyria/bootstrap-slider/pull/679). Thanks to [Denis Chenu](https://github.com/Shnoulle).
Expand Down
2 changes: 1 addition & 1 deletion third_party/bootstrap-slider/LICENSE.md
@@ -1,6 +1,6 @@
----------------------------------------------------------------------
bootstrap-slider is released under the MIT License
Copyright (c) 2016 Kyle Kemp, Rohit Kalkur, and contributors
Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
5 changes: 5 additions & 0 deletions third_party/bootstrap-slider/LIMESURVEY.md
@@ -0,0 +1,5 @@
# LimeSurvey integration

This is the dist directory of [bootstrap-slider](https://github.com/seiyria/bootstrap-slider) [release 9.7.0](https://github.com/seiyria/bootstrap-slider/releases/tag/v9.7.0), with copyright and instructions.


4 changes: 2 additions & 2 deletions third_party/bootstrap-slider/README.md
Expand Up @@ -142,7 +142,7 @@ How do I exclude the optional JQuery dependency from my build?
__Note that the JQuery dependency is considered to be optional.__ For example, to exclude JQuery from being part of your Browserify build, you would call something like the following (assuming `main.js` is requiring bootstrap-slider as a dependency):

```BASH
browserify -u jquery main.js > bundle.js
browserify --im -u jquery main.js > bundle.js
```
### Webpack
To exclude JQuery from your Webpack build, you will have to go into the Webpack config file for your specific project and add something like the following to your `resolve.alias` section:
Expand Down Expand Up @@ -257,7 +257,7 @@ The following is a list of the commonly-used command line tasks:
* `grunt dev`: Alias for `grunt development`
* `grunt prod`: Alias for `grunt production`
* `grunt build`: Transpiles JavaScript source via Babel and compiles LESS source to CSS to `temp` directory.
* `grunt lint`: Runs JSLint on the JavaScript source code.
* `grunt lint`: Runs JSLint on the JavaScript source code files, SASS-Lint on the SASS source code files, and LESSLint on the LESS source code files.
* `grunt test`: Runs unit tests contained in `/test` directory via Jasmine.


Expand Down
20 changes: 16 additions & 4 deletions third_party/bootstrap-slider/bootstrap-slider.js
@@ -1,5 +1,5 @@
/*! =======================================================
VERSION 9.6.0
VERSION 9.7.0
========================================================= */
"use strict";

Expand All @@ -19,7 +19,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
* =========================================================
*
* bootstrap-slider is released under the MIT License
* Copyright (c) 2016 Kyle Kemp, Rohit Kalkur, and contributors
* Copyright (c) 2017 Kyle Kemp, Rohit Kalkur, and contributors
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
Expand Down Expand Up @@ -740,9 +740,21 @@ var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(win
this.touchmove = this._touchmove.bind(this);

if (this.touchCapable) {
// Test for passive event support
var supportsPassive = false;
try {
var opts = Object.defineProperty({}, 'passive', {
get: function get() {
supportsPassive = true;
}
});
window.addEventListener("test", null, opts);
} catch (e) {}
// Use our detect's results. passive applied if supported, capture will be false either way.
var eventOptions = supportsPassive ? { passive: true } : false;
// Bind touch handlers
this.sliderElem.addEventListener("touchstart", this.touchstart, false);
this.sliderElem.addEventListener("touchmove", this.touchmove, false);
this.sliderElem.addEventListener("touchstart", this.touchstart, eventOptions);
this.sliderElem.addEventListener("touchmove", this.touchmove, eventOptions);
}
this.sliderElem.addEventListener("mousedown", this.mousedown, false);

Expand Down
6 changes: 3 additions & 3 deletions third_party/bootstrap-slider/bootstrap-slider.min.js

Large diffs are not rendered by default.

0 comments on commit 2476b52

Please sign in to comment.