bootstrap_tokenfield_rails 0.0.7 → 0.0.9

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: a99164ca4c75845c6e28ebbf78eeade419aedefe
4
- data.tar.gz: b72c6367bc12f6d3bd9539888c076df50b28f02f
3
+ metadata.gz: b5f633026d019a060f69ad542386d6ffa616428f
4
+ data.tar.gz: 176b7704f22c557188ca5a28c1e52ea0a1db83b8
5
5
  SHA512:
6
- metadata.gz: 92a5cd5a835202b06661c05920d01fe4b2d6e7e315e379240abdfcba0e2bec2e705aa3544f7e86d209c8efcca0e05f54f6c6e4e40652d5412fe46a9f41121bba
7
- data.tar.gz: af2ed1bfee6c48ce218239f58903e704f69e8849bbeee818b73f93786a67eaff786dab9c47965f64e2c851c7cdb6b3b96d6b6e0f28bc8fbced31d1c873fca147
6
+ metadata.gz: 398cdb4c381c3dc4ee9a8f177a815a3e88486170daf04271948f889e327ab626fd99af777c0b11dbd277589888ce69bc358b93a3f2af81349625b69ae0e9abbc
7
+ data.tar.gz: 692587fc87c933604397a9a5bd4ac7ef8ff4eaf1b5739e21b2f14a196b9dfbabcf5e5f9bfb1cef8281eaa9fb7b8da4e880d1100f6db5e2490a6a63e4ca0a2a9f
@@ -1,3 +1,3 @@
1
1
  module BootstrapTokenfieldRails
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -192,6 +192,7 @@
192
192
  args[0] = $.extend( {}, defaults, args[0] )
193
193
 
194
194
  this.$input.typeahead.apply( this.$input, args )
195
+ this.$hint = this.$input.prev('.tt-hint')
195
196
  this.typeahead = true
196
197
  }
197
198
  }
@@ -880,6 +881,10 @@
880
881
  }
881
882
 
882
883
  this.$input.width( mirrorWidth )
884
+
885
+ if (this.$hint) {
886
+ this.$hint.width( mirrorWidth )
887
+ }
883
888
  }
884
889
  else {
885
890
  var w = (this.textDirection === 'rtl')
@@ -890,6 +895,10 @@
890
895
  // dimensions returned by jquery will be NaN -> we default to 100%
891
896
  // so placeholder won't be cut off.
892
897
  isNaN(w) ? this.$input.width('100%') : this.$input.width(w);
898
+
899
+ if (this.$hint) {
900
+ isNaN(w) ? this.$hint.width('100%') : this.$hint.width(w);
901
+ }
893
902
  }
894
903
  }
895
904
 
@@ -174,6 +174,7 @@
174
174
  }
175
175
  .tokenfield.input-lg,
176
176
  .input-group-lg .tokenfield {
177
+ height: auto;
177
178
  min-height: 45px;
178
179
  padding-bottom: 4px;
179
180
  }
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_tokenfield_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akash Devaraju
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-24 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: A gem for adding the tokenizing plugin, Bootstrap Tokenfield to the rails
@@ -61,17 +61,17 @@ require_paths:
61
61
  - lib
62
62
  required_ruby_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - '>='
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.2.1
74
+ rubygems_version: 2.2.2
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: A jQuery tagging / tokenizer input plugin for Twitter's Bootstrap