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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33c051e87927a6ba431d7a4d77ecb4be9fcb9f91
|
4
|
+
data.tar.gz: 5d4f5cd375b1ee131153f13d9975d098849279f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffae0dcc10e94dfc94f7ddb4e0345341374e3549e62bae2f6db7835d5c03c3930ced206bade069d372799a6328ecf6e02df3edb24a2143ff6690d97b0af8ef65
|
7
|
+
data.tar.gz: bf43d8df7fedac3c203091f3191877568354d033b6376b9ad6f7d12e7d641b8a5a9cda4c633047d00c5b8866e172f9e57e9a50f0b39cadaa965114970cc52b07
|
data/lib/iugu-ux/version.rb
CHANGED
@@ -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
|
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.
|
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:
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|