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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7140a85e94c4fc4596d5b49bc4cbdc6fdce5575b
4
- data.tar.gz: 4e6e768bea615d2de4522dcb7b4b5a187cc196c3
3
+ metadata.gz: 260e1b31dcb2d987d2853d8399f8a1b2c94bc94d
4
+ data.tar.gz: 1b7830d8ba3f61e1aa26d5f4a95c007628859209
5
5
  SHA512:
6
- metadata.gz: af4608b3765c6f5c2cec58c193c1a159bf7788e272d5d1467dd54aadb46a57e1cb62a7f4ea65a46bccc8a494cf738aeedfacf8cf8283cba90d1a13b69cdfcd58
7
- data.tar.gz: 6c90fe9038c1c81fd30104ff88431548b273e15c75bf35b4c5eae1601a50fb6197bf3a23806d2b2626aeb25654870c82be5be779be70ab2602a703c9063dd065
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-uploads/graphs/contributors
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
- options = {
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 {
@@ -1,5 +1,5 @@
1
1
  module Godmin
2
2
  module Tags
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
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.1
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-02-12 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: godmin