active_frontend 14.0.86 → 14.0.87

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5fcd909515837fadd1999ef75260563696ade8e
4
- data.tar.gz: 7b8647e2649abf1933d93d3645285f51f6c93a4b
3
+ metadata.gz: b28de99318462909f3d47a0b2719b808658cb9c8
4
+ data.tar.gz: 976ec697f10a9cc8e87c39ab1774996bf0cd22ed
5
5
  SHA512:
6
- metadata.gz: 6b4bee822391dc31f0f8cdd41395091cfdba496b9a6da2f1352871cc8755efb8f997a135900376b928f22ebb1c05b3d7a1b4126d3a3bfb0a2ce85b4fe4f22b8b
7
- data.tar.gz: 766beac39b0a95f3af6546c6302407e6e1ab34534e39e306ba3c236b9e1f9b65c1c43233687f8daa99d60e04dab3dd003dbbb60c23d5d9fc5e7c94586ff683ec
6
+ metadata.gz: 8c01b6f5db25fd242897c14ef2cf7fd1b0083268ba01928fd0f6485735849f0848e7ca5bac2efa89e84e43f05350b197e5eebe6110f30b325029637a45b75611
7
+ data.tar.gz: fde4aa404eb58243c2b87a67fb27cb77eae2d98a9893eaca72ef79b2c920e266d6f84a3989b56461cb621cc3154f382f713ea771c9d35154935dfcc166836dda
@@ -1,3 +1,3 @@
1
1
  module ActiveFrontend
2
- VERSION = '14.0.86'.freeze
2
+ VERSION = '14.0.87'.freeze
3
3
  end
@@ -7,14 +7,14 @@
7
7
  var Selectpicker = function (element, options) {
8
8
  this.$element = $(element);
9
9
  this.settings = {
10
- fuzzySearch: this.$element.data('fuzzySearch'),
11
- includePrompt: this.$element.data('includePrompt'),
12
- optionHoverClass: this.$element.data('optionHoverClass'),
13
- optionSelectedClass: this.$element.data('optionSelectedClass'),
10
+ fuzzySearch: this.$element.data('fuzzy-search'),
11
+ includePrompt: this.$element.data('include-prompt'),
12
+ optionHoverClass: this.$element.data('option-hover-class'),
13
+ optionSelectedClass: this.$element.data('option-selected-class'),
14
14
  text: {
15
15
  selectless: this.$element.data('text-selectless') || Selectpicker.DEFAULTS.text.selectless,
16
16
  placeholder: this.$element.data('text-placeholder') || Selectpicker.DEFAULTS.text.placeholder,
17
- prompt: this.$element.data('text-prompt') || Selectpicker.DEFAULTS.text.prompt,
17
+ prompt: this.$element.data('text-prompt') || Selectpicker.DEFAULTS.text.prompt
18
18
  }
19
19
  };
20
20
  this.options = $.extend({}, Selectpicker.DEFAULTS, this.settings, options);
@@ -9,7 +9,11 @@
9
9
  this.settings = {
10
10
  baseClass: this.$element.data('base-class'),
11
11
  offClass: this.$element.data('off-class'),
12
- onClass: this.$element.data('on-class')
12
+ onClass: this.$element.data('on-class'),
13
+ text: {
14
+ off: this.$element.data('text-off') || Switch.DEFAULTS.text.off,
15
+ on: this.$element.data('text-on') || Switch.DEFAULTS.text.on
16
+ }
13
17
  };
14
18
  this.options = $.extend({}, Switch.DEFAULTS, this.settings, options);
15
19
 
@@ -70,7 +74,8 @@
70
74
 
71
75
  this.$switch.removeClass('off');
72
76
  this.$switch.addClass(this.options.onClass);
73
- this.$element.prop('checked', true);
77
+ this.$element.prop('checked', true)
78
+ .attr('checked', 'checked');
74
79
 
75
80
  if (!silent) this.trigger();
76
81
 
@@ -82,7 +87,8 @@
82
87
 
83
88
  this.$switch.removeClass(this.options.onClass);
84
89
  this.$switch.addClass('off');
85
- this.$element.prop('checked', false);
90
+ this.$element.prop('checked', false)
91
+ .removeAttr('checked');
86
92
 
87
93
  if (!silent) this.trigger();
88
94
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.86
4
+ version: 14.0.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails