effective_form_inputs 1.1.9 → 1.1.10

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: daf93583a8dc76bcd36f5b87da49adadf24cbe92
4
- data.tar.gz: 22c5a4c1baaed2aa38484b0f897eef99ea793823
3
+ metadata.gz: 273d6a542f186a294fd7f79b81dbb815da8417b0
4
+ data.tar.gz: 7fafc590c61a949ff71f5c3a75cddf21b65391c8
5
5
  SHA512:
6
- metadata.gz: 940c2f761c989743ee2de77c2a60e61efc8051863cb96d8a0e764654218768f34309588bde48f0249153aa2d693eb17182541a30184857e7e4c1e6c537e2346d
7
- data.tar.gz: 867476cf23dfcde448c57d40cebbf210df9cd398480867e2d8a496850c2766063c467d277f84d97311e4a9c4040614bd047ee698764602775b144dc35e9bd7d4
6
+ metadata.gz: d3644072febc20674f2737455a339f4a78a958641ea1be612e9aff6cb6c46fed12f7a9bfeafd113e33a6b18fcab23facc5e10dcaccad2b79cd519794f4f44f68
7
+ data.tar.gz: e97694a722a1f08951d9fea4a898ef2aa911cc1272c55650e4260c96745784bcb3205c9ce81d740c82dae957599e18733fd22ce4a077ac785bf4510717664089
@@ -132,7 +132,7 @@
132
132
  @input.val(value)
133
133
 
134
134
  if value == null || value == undefined || value == ''
135
- @label.html("<span class='selection-clear'>x</span> <span class='selection-placeholder'>#{@options.placeholder}</span>")
135
+ @label.html("<span class='selection-placeholder'>#{@options.placeholder}</span>")
136
136
  @reset()
137
137
  else
138
138
  $item = @tabContent.find("li[data-item-value='#{value}']").first()
@@ -41,4 +41,7 @@ $(document).on 'select2:reinitialize', (event) ->
41
41
  $select.data('select2').$container.addClass(options['containerClass']) if options['containerClass']
42
42
  $select.data('select2').$dropdown.addClass(options['dropdownClass']) if options['dropdownClass']
43
43
 
44
+ $select.trigger('change')
45
+ true
46
+
44
47
 
@@ -7,7 +7,7 @@
7
7
  %span.selection-clear x
8
8
  %span.selection-label= input.option_label.html_safe
9
9
  - else
10
- %span.selection-placeholder Please choose
10
+ %span.selection-placeholder= input.js_options[:placeholder]
11
11
 
12
12
  %span.selection-arrow
13
13
  %b
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.1.9'.freeze
2
+ VERSION = '1.1.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-23 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails