iugu-ux 1.0.24 → 1.0.25

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: 875a9f71ef5b854e08f2dab901d845f059f8b7ff
4
- data.tar.gz: 91c00c205e4637ac69ad99e3cd9d46ea00419ace
3
+ metadata.gz: 33c051e87927a6ba431d7a4d77ecb4be9fcb9f91
4
+ data.tar.gz: 5d4f5cd375b1ee131153f13d9975d098849279f3
5
5
  SHA512:
6
- metadata.gz: c179b23caa0743d41a370cd3eab67fc87446c0253504f8a489761b162ea7d9b8fdadbc66c4c4f7bea0af373df0854dfdb75a0ae5c61cb30ca600429f4a3f494d
7
- data.tar.gz: ec6de2f1a20f5518c560b484422be28fcc0fa414eed4e9e226cbf219f9d463d1207e74b99cab3d70ac48108babcfcbea3307fbe34832d6c4a9ca017f5861b3a3
6
+ metadata.gz: ffae0dcc10e94dfc94f7ddb4e0345341374e3549e62bae2f6db7835d5c03c3930ced206bade069d372799a6328ecf6e02df3edb24a2143ff6690d97b0af8ef65
7
+ data.tar.gz: bf43d8df7fedac3c203091f3191877568354d033b6376b9ad6f7d12e7d641b8a5a9cda4c633047d00c5b8866e172f9e57e9a50f0b39cadaa965114970cc52b07
@@ -1,3 +1,3 @@
1
1
  module IuguUX
2
- VERSION = "1.0.24"
2
+ VERSION = "1.0.25"
3
3
  end
@@ -41,6 +41,7 @@ class window.app.BaseResource extends Backbone.AssociatedModel
41
41
  generateRemoveFunction: (relation) ->
42
42
  @["removeFrom#{@properCasedRelationName relation.key}"] = (object) ->
43
43
  @get(relation.key).destroy(object)
44
+ $('input.decorator').trigger('reload')
44
45
 
45
46
  toJSON: (options) ->
46
47
  _.omit( _.clone( super(options) ), @virtual_attributes )
@@ -58,7 +58,7 @@ class IuguUI.Money
58
58
  type: "text"
59
59
  placeholder: @input_element.attr "placeholder"
60
60
  value: @input_element.attr "value"
61
- class: @input_element.attr "class"
61
+ class: "#{@input_element.attr("class")} decorator"
62
62
  )
63
63
 
64
64
  @decorator.maskMoney(@maskOptions())
@@ -67,6 +67,10 @@ class IuguUI.Money
67
67
 
68
68
  that = @
69
69
 
70
+ @decorator.bind "reload", ->
71
+ $(this).val( that.input_element.val() )
72
+ $(this).maskMoney('mask')
73
+
70
74
  @decorator.bind "focus", ->
71
75
  $(this).maskMoney('mask')
72
76
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iugu-ux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-29 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script