adt-js-components 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adt-js-components",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "JavaScript components for Nette framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@ function run(options) {
9
9
  */
10
10
  function AjaxSelect($element) {
11
11
  this.$originalElement = $element;
12
- this.options = this.$originalElement.data('ajax-select');
12
+ this.options = this.$originalElement.data('adt-ajax-select');
13
13
  this.customOptions = $.extend({minimumInputLength: 2, language: "en"}, this.$originalElement.data('ajax-select-options') || {});
14
14
  this.init();
15
15
  }
@@ -108,7 +108,7 @@ function run(options) {
108
108
  };
109
109
 
110
110
  AjaxSelect.init = function ($container) {
111
- $container.find('select[data-ajax-select]').each(function () {
111
+ $container.find('select[data-adt-ajax-select]').each(function () {
112
112
  new AjaxSelect($(this));
113
113
  });
114
114
  };