selectize-rails 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +19 -0
- data/README.md +3 -10
- data/lib/selectize-rails/version.rb +1 -1
- data/vendor/assets/javascripts/selectize.js +12 -4
- data/vendor/assets/stylesheets/selectize.bootstrap2.css +1 -1
- data/vendor/assets/stylesheets/selectize.bootstrap3.css +1 -1
- data/vendor/assets/stylesheets/selectize.css +1 -1
- data/vendor/assets/stylesheets/selectize.default.css +1 -1
- data/vendor/assets/stylesheets/selectize.legacy.css +1 -1
- metadata +12 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0441f5943f79fa3667c42e33fe1647cbf33db109
|
4
|
+
data.tar.gz: 0ee23ef979f90b307ac9127f64c93eb1168a9af2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9be22d0d6e71dbdd60ebbf05adb7fa1275cba3c7c9c4891c23e52e0e58ba5723b27163b0e677617035508f8feeac7747dc0c1631cff5502683f6df58dfdd88b6
|
7
|
+
data.tar.gz: 3a28613b7cac685a11b8b397645dde22761c057eb4db49d47c8b81e9bcc9dc34e25cbde8cdf37caf892db5e14798511361928c23d6510a0a1adfc96764367f91
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
selectize-rails
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
| Version | Notes |
|
4
|
+
| -------:| ----------------------------------------------------------- |
|
5
|
+
| 0.8.4 | Update to v0.8.4 of selectize.js |
|
6
|
+
| 0.8.3 | Update to v0.8.3 of selectize.js |
|
7
|
+
| 0.8.1 | Update to v0.8.1 of selectize.js |
|
8
|
+
| 0.8.0 | Update to v0.8.0 of selectize.js |
|
9
|
+
| 0.7.7 | Update to v0.7.7 of selectize.js |
|
10
|
+
| 0.7.6 | Update to v0.7.6 of selectize.js |
|
11
|
+
| 0.7.5 | Update to v0.7.5 of selectize.js |
|
12
|
+
| 0.7.4 | Update to v0.7.4 of selectize.js |
|
13
|
+
| 0.7.3 | Update to v0.7.3 of selectize.js |
|
14
|
+
| 0.7.2 | Update to v0.7.2 of selectize.js |
|
15
|
+
| 0.7.0 | Update to v0.7.0 of selectize.js |
|
16
|
+
| 0.6.14 | Update to v0.6.14 of selectize.js |
|
17
|
+
| 0.6.4 | Update to v0.6.4 of selectize.js |
|
18
|
+
| 0.6.1 | Update and set gem version equal to selectize.js version |
|
19
|
+
| 0.1.0 | Initial release |
|
data/README.md
CHANGED
@@ -41,20 +41,13 @@ See the [demo page of Brian Reavis](http://brianreavis.github.io/selectize.js/)
|
|
41
41
|
|
42
42
|
| Version | Notes |
|
43
43
|
| -------:| ----------------------------------------------------------- |
|
44
|
+
| 0.8.4 | Update to v0.8.4 of selectize.js |
|
44
45
|
| 0.8.3 | Update to v0.8.3 of selectize.js |
|
45
46
|
| 0.8.1 | Update to v0.8.1 of selectize.js |
|
46
47
|
| 0.8.0 | Update to v0.8.0 of selectize.js |
|
47
48
|
| 0.7.7 | Update to v0.7.7 of selectize.js |
|
48
|
-
|
49
|
-
|
50
|
-
| 0.7.4 | Update to v0.7.4 of selectize.js |
|
51
|
-
| 0.7.3 | Update to v0.7.3 of selectize.js |
|
52
|
-
| 0.7.2 | Update to v0.7.2 of selectize.js |
|
53
|
-
| 0.7.0 | Update to v0.7.0 of selectize.js |
|
54
|
-
| 0.6.14 | Update to v0.6.14 of selectize.js |
|
55
|
-
| 0.6.4 | Update to v0.6.4 of selectize.js |
|
56
|
-
| 0.6.1 | Update and set gem version equal to selectize.js version |
|
57
|
-
| 0.1.0 | Initial release |
|
49
|
+
|
50
|
+
[older](CHANGELOG.md)
|
58
51
|
|
59
52
|
## License
|
60
53
|
|
@@ -583,7 +583,7 @@
|
|
583
583
|
}));
|
584
584
|
|
585
585
|
/**
|
586
|
-
* selectize.js (v0.8.
|
586
|
+
* selectize.js (v0.8.4)
|
587
587
|
* Copyright (c) 2013 Brian Reavis & contributors
|
588
588
|
*
|
589
589
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
@@ -1461,8 +1461,7 @@
|
|
1461
1461
|
self.advanceSelection(1, e);
|
1462
1462
|
return;
|
1463
1463
|
case KEY_TAB:
|
1464
|
-
if (self.settings.create &&
|
1465
|
-
self.createItem();
|
1464
|
+
if (self.settings.create && self.createItem()) {
|
1466
1465
|
e.preventDefault();
|
1467
1466
|
}
|
1468
1467
|
return;
|
@@ -1554,6 +1553,10 @@
|
|
1554
1553
|
self.isFocused = false;
|
1555
1554
|
if (self.ignoreFocus) return;
|
1556
1555
|
|
1556
|
+
if (self.settings.create && self.settings.createOnBlur) {
|
1557
|
+
self.createItem();
|
1558
|
+
}
|
1559
|
+
|
1557
1560
|
self.close();
|
1558
1561
|
self.setTextboxValue('');
|
1559
1562
|
self.setActiveItem(null);
|
@@ -2346,12 +2349,14 @@
|
|
2346
2349
|
*
|
2347
2350
|
* Once this completes, it will be added
|
2348
2351
|
* to the item list.
|
2352
|
+
*
|
2353
|
+
* @return {boolean}
|
2349
2354
|
*/
|
2350
2355
|
createItem: function() {
|
2351
2356
|
var self = this;
|
2352
2357
|
var input = $.trim(self.$control_input.val() || '');
|
2353
2358
|
var caret = self.caretPos;
|
2354
|
-
if (!input.length) return;
|
2359
|
+
if (!input.length) return false;
|
2355
2360
|
self.lock();
|
2356
2361
|
|
2357
2362
|
var setup = (typeof self.settings.create === 'function') ? this.settings.create : function(input) {
|
@@ -2379,6 +2384,8 @@
|
|
2379
2384
|
if (typeof output !== 'undefined') {
|
2380
2385
|
create(output);
|
2381
2386
|
}
|
2387
|
+
|
2388
|
+
return true;
|
2382
2389
|
},
|
2383
2390
|
|
2384
2391
|
/**
|
@@ -2865,6 +2872,7 @@
|
|
2865
2872
|
persist: true,
|
2866
2873
|
diacritics: true,
|
2867
2874
|
create: false,
|
2875
|
+
createOnBlur: false,
|
2868
2876
|
highlight: true,
|
2869
2877
|
openOnFocus: true,
|
2870
2878
|
maxOptions: 1000,
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selectize-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Manuel van Rijn
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-20 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,17 +27,15 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: A small gem for putting selectize.js into the Rails asset pipeline
|
@@ -51,6 +46,9 @@ extensions: []
|
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
53
48
|
- .gitignore
|
49
|
+
- .ruby-gemset
|
50
|
+
- .ruby-version
|
51
|
+
- CHANGELOG.md
|
54
52
|
- Gemfile
|
55
53
|
- LICENSE.txt
|
56
54
|
- README.md
|
@@ -70,32 +68,25 @@ files:
|
|
70
68
|
homepage: https://github.com/manuelvanrijn/selectize-rails
|
71
69
|
licenses:
|
72
70
|
- MIT, Apache License v2.0
|
71
|
+
metadata: {}
|
73
72
|
post_install_message:
|
74
73
|
rdoc_options: []
|
75
74
|
require_paths:
|
76
75
|
- lib
|
77
76
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
77
|
requirements:
|
80
|
-
- -
|
78
|
+
- - '>='
|
81
79
|
- !ruby/object:Gem::Version
|
82
80
|
version: '0'
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
hash: -4256176454111428186
|
86
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
82
|
requirements:
|
89
|
-
- -
|
83
|
+
- - '>='
|
90
84
|
- !ruby/object:Gem::Version
|
91
85
|
version: '0'
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
hash: -4256176454111428186
|
95
86
|
requirements: []
|
96
87
|
rubyforge_project:
|
97
|
-
rubygems_version: 1.
|
88
|
+
rubygems_version: 2.1.11
|
98
89
|
signing_key:
|
99
|
-
specification_version:
|
90
|
+
specification_version: 4
|
100
91
|
summary: an asset gemification of the selectize.js plugin
|
101
92
|
test_files: []
|