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 +4 -4
- data/lib/active_frontend/version.rb +1 -1
- data/vendor/assets/javascripts/base/_tag.js +14 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f16f06910ac0a7e23d833abcb4d80ccbd6836b9
|
|
4
|
+
data.tar.gz: 4cfdc282e4c84d436fa1b32fdd6532fc48d15539
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76f1c6618a3ecdb114253a0b43464deefb85a875b7a46bfc4d684b3a1e3a4e98401b9d34801aaca4729b64ca96ae86cc1f8d94bc8b2302394dca34f2bc14f126
|
|
7
|
+
data.tar.gz: 58881a4717688091a9cc2603381c88f2cadda07336fe962c0d33ce309a69066ba544ecf4e1ddb57a15c88e9187dcc4da5a6b3bd17a891311bc8ff8be4d29eb5e
|
|
@@ -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.
|
|
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
|
|