godmin-tags 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/app/assets/javascripts/godmin-tags.js +2 -2
- data/lib/godmin/tags/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260e1b31dcb2d987d2853d8399f8a1b2c94bc94d
|
4
|
+
data.tar.gz: 1b7830d8ba3f61e1aa26d5f4a95c007628859209
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26021cc7bbeb295281278dd9fa13d2b99b54bb6b680b0156d3c9cd2e9ccdd921f4bb3a671b488b89bb77e8df278d91cd4fe509678bad0a46fae47bc1acf21ac0
|
7
|
+
data.tar.gz: d0a9f89019f6e39299add9c4f9797d4ef3e4c462b77b93a5009b1ec3aeafc4a2bf3dcba6586f340fe679863b0d5506b5d9f37fcad2045098ba435ac3266a1e82
|
data/README.md
CHANGED
@@ -29,9 +29,23 @@ Use the tags field in your form like so:
|
|
29
29
|
<% end %>
|
30
30
|
```
|
31
31
|
|
32
|
+
Or initialize yourself using JavaScript:
|
33
|
+
|
34
|
+
```js
|
35
|
+
Godmin.Tags.initializeTagger($el);
|
36
|
+
```
|
37
|
+
|
38
|
+
Additional options can be passed down to `Godmin.SelectBoxes`:
|
39
|
+
|
40
|
+
```js
|
41
|
+
Godmin.Tags.initializeTagger($el, {
|
42
|
+
create: false
|
43
|
+
});
|
44
|
+
```
|
45
|
+
|
32
46
|
## Contributors
|
33
47
|
|
34
|
-
https://github.com/varvet/godmin-
|
48
|
+
https://github.com/varvet/godmin-tags/graphs/contributors
|
35
49
|
|
36
50
|
## License
|
37
51
|
|
@@ -10,7 +10,7 @@ Godmin.Tags = (function() {
|
|
10
10
|
}
|
11
11
|
|
12
12
|
function initializeTagger($el, options) {
|
13
|
-
|
13
|
+
var defaults = {
|
14
14
|
delimiter: ', ',
|
15
15
|
create: true,
|
16
16
|
valueField: 'name',
|
@@ -25,7 +25,7 @@ Godmin.Tags = (function() {
|
|
25
25
|
);
|
26
26
|
}
|
27
27
|
};
|
28
|
-
Godmin.SelectBoxes.initializeSelectBox($el, options);
|
28
|
+
Godmin.SelectBoxes.initializeSelectBox($el, $.extend(defaults, options));
|
29
29
|
}
|
30
30
|
|
31
31
|
return {
|
data/lib/godmin/tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: godmin-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Varvet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: godmin
|