iugu-ux 1.0.18 → 1.0.19
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: 215edeebbc7b7ed9b6d92276fc90cdbb125ed186
|
4
|
+
data.tar.gz: 2a02e0c2ad1eb74152dbcb6ae8cd1feac0fda8e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7179c103b351a0fc0b208b912ce0cc1f760b7d92f74d638b924dd9f0bde8b2e2c42b5cb310f677878801bab46f0b317e9ccedfd053edc76f5c6ed74925e1390f
|
7
|
+
data.tar.gz: 96f3a5a837676009a38e4cd69de38fed625a42e4106a78283b8d7c56873629e2480a9942903fc3d2fded0a6cf64b0adbed322a6dd2c9c633acf07655cbcfaf55
|
data/lib/iugu-ux/version.rb
CHANGED
@@ -36,9 +36,9 @@ class IuguUI.Money
|
|
36
36
|
|
37
37
|
maskOptions: ->
|
38
38
|
if i18n.locale.toLowerCase() == "pt-br"
|
39
|
-
{prefix: 'R$', thousands:'.', decimal: ","}
|
39
|
+
{prefix: 'R$', thousands:'.', decimal: ",", allowNegative: !!@el.data('allow-negative')}
|
40
40
|
else
|
41
|
-
{prefix: '$', thousands:',', decimal: "."}
|
41
|
+
{prefix: '$', thousands:',', decimal: ".", allowNegative: !!@el.data('allow-negative')}
|
42
42
|
|
43
43
|
|
44
44
|
constructor: ( options ) ->
|
@@ -72,7 +72,7 @@ class IuguUI.Money
|
|
72
72
|
|
73
73
|
@decorator.bind "blur", ->
|
74
74
|
val = if $(this).val().length == 0 then "0" else $(this).val()
|
75
|
-
that.input_element.val(val.replace(/[
|
75
|
+
that.input_element.val(val.replace(/[^\-0-9]/g, ''))
|
76
76
|
that.input_element.trigger('change')
|
77
77
|
$(this).maskMoney('mask')
|
78
78
|
|
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.19
|
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-
|
11
|
+
date: 2015-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|