active_frontend 14.1.35 → 14.1.36

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddac57f9e448d0e3e83175c3e91f110af72ab1bc
4
- data.tar.gz: 588a769f32714a41c8740be26744e3a75234496d
3
+ metadata.gz: 2f16f06910ac0a7e23d833abcb4d80ccbd6836b9
4
+ data.tar.gz: 4cfdc282e4c84d436fa1b32fdd6532fc48d15539
5
5
  SHA512:
6
- metadata.gz: d16b2ed93a53af522989198205c6dc8002e3d29f6e998bd193e9a8a0e01da9219b56b6b6c5648bea500e1b3201830cc6f99e292e395c6a69fb58a4608a3d8ef7
7
- data.tar.gz: 6ee9819f4dd746e3f5d3bfbfdc685e63b5aef1030035b4ba9e11bd6896bc1ae914193aa24c50e3d4d767a07e039a3ce29197a170de8dccc22a0b6b480a7d8c19
6
+ metadata.gz: 76f1c6618a3ecdb114253a0b43464deefb85a875b7a46bfc4d684b3a1e3a4e98401b9d34801aaca4729b64ca96ae86cc1f8d94bc8b2302394dca34f2bc14f126
7
+ data.tar.gz: 58881a4717688091a9cc2603381c88f2cadda07336fe962c0d33ce309a69066ba544ecf4e1ddb57a15c88e9187dcc4da5a6b3bd17a891311bc8ff8be4d29eb5e
@@ -1,3 +1,3 @@
1
1
  module ActiveFrontend
2
- VERSION = '14.1.35'.freeze
2
+ VERSION = '14.1.36'.freeze
3
3
  end
@@ -40,7 +40,7 @@
40
40
  addOnBlur: true,
41
41
  allowDuplicates: false,
42
42
  cancelConfirmKeysOnEmpty: false,
43
- confirmKeys: [13, 44],
43
+ confirmKeys: [13, 44, 188],
44
44
  delimiter: ',',
45
45
  delimiterRegex: null,
46
46
  focusClass: 'focus',
@@ -303,7 +303,19 @@
303
303
  Tag.prototype.build = function(options) {
304
304
  var _self = this;
305
305
 
306
- _self.options = $.extend({}, Tag.DEFAULTS, options);
306
+ _self.settings = {
307
+ addOnBlur: _self.$element.data('add-on-blur') || Tag.DEFAULTS.addOnBlur,
308
+ allowDuplicates: _self.$element.data('allow-duplicates') || Tag.DEFAULTS.allowDuplicates,
309
+ cancelConfirmKeysOnEmpty: _self.$element.data('cancel-confirm-keys-on-empty') || Tag.DEFAULTS.cancelConfirmKeysOnEmpty,
310
+ delimiter: _self.$element.data('delimiter') || Tag.DEFAULTS.delimiter,
311
+ freeInput: _self.$element.data('free-input') || Tag.DEFAULTS.freeInput,
312
+ maxChars: _self.$element.data('max-chars') || Tag.DEFAULTS.maxChars,
313
+ maxTags: _self.$element.data('max-tags') || Tag.DEFAULTS.maxTags,
314
+ triggerChange: _self.$element.data('trigger-change') || Tag.DEFAULTS.triggerChange,
315
+ trimValue: _self.$element.data('trim-value') || Tag.DEFAULTS.trimValue
316
+ };
317
+
318
+ _self.options = $.extend({}, Tag.DEFAULTS, _self.settings, options);
307
319
 
308
320
  if (_self.objectItems) _self.options.freeInput = false;
309
321
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.1.35
4
+ version: 14.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez