egov_utils 0.1.36 → 0.1.37

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
  SHA256:
3
- metadata.gz: 12177424f9e5b32b50bc77598353a6615cdcf2cc743b336b01e3c6c2d3dcd220
4
- data.tar.gz: 47fbc3010fb1a9366236e4a857aff8f557d6cfee1ea7c8b1eb85ddf07c4222c9
3
+ metadata.gz: 2e8d0fbd9213c1a72766c4051bd1ae95a113d37dabe8fbec63e6c99c7cb375b6
4
+ data.tar.gz: 0b1ab4b993e1b0ebfa4abc19a15af8080771e9b55e6561a07b627dc0c180f90f
5
5
  SHA512:
6
- metadata.gz: 644a5bfbf7f770bd60fd33c0d28a4a5b90c7fb79e40c343d2191aca3670d6bfe5408ba15cb80e0a2096b44a1e765b3f623d5b5d9b00434203d2228a9c9a53925
7
- data.tar.gz: 356721469b453f6c011e324bf5084171b42a9b418b19256a3fde5f339c1cf780e03f14fd4686ef9057c71ea4442820535d8d0a070e05f9aada2e3e6350c91cd2
6
+ metadata.gz: c1b649500df057474548fee95ec35bfc87062c89322b2bc220a2165b1722428c503df8c36e4ecb80ee556e4d84fc4dda9fac0feadb8a84dd6848a6b7c442621b
7
+ data.tar.gz: f6ae27ac1abbab33ec27387dcfa769c4b2a9bf198b9cf12be4b20017719996f3a8c5e453d71f1c8ef4c1265deb0cc2d998572d688e7e9996922198acf328954f
@@ -17,12 +17,17 @@ $.widget 'egov_utils.fileUid',
17
17
  @element.attr('tabindex', -1)
18
18
 
19
19
  @form = @element.closest('form')
20
- @form.on 'submit', (evt)->
21
- that.element.val(that.getValue())
20
+ # @form.on 'submit', (evt)->
21
+ # that.element.val(that.getValue())
22
22
 
23
23
  if @element.val() != ''
24
24
  this.setValue( @element.val() )
25
25
 
26
+ @file_uid_gui.on 'change', ':input', (evt)->
27
+ evt.stopPropagation();
28
+ that.element.val( that.getValue() )
29
+ that.element.trigger('change')
30
+
26
31
  _destroy: ()->
27
32
  @element.attr('style', '')
28
33
  @element.insertAfter(@container)
@@ -103,7 +103,7 @@ module EgovUtils
103
103
  raise ::ActiveRecord::SerializationTypeMismatch,
104
104
  "Attribute was supposed to be a #{self}, but was a #{obj.class}. -- #{obj.inspect}"
105
105
  end
106
- obj.invalid? ? nil : obj.to_s
106
+ obj.to_s
107
107
  end
108
108
 
109
109
  def load(source)
@@ -162,7 +162,7 @@ module EgovUtils
162
162
 
163
163
  def to_s
164
164
  if invalid?
165
- ''
165
+ @str_val.to_s
166
166
  else
167
167
  type_definition.file_uid_to_s(self)
168
168
  end
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.1.36'
2
+ VERSION = '0.1.37'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails