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: 444185314fc40cfd0a76a1f657acfdca3aff5c10
4
- data.tar.gz: 2c1444d18278b7f13cde96012acbd0c69106cf40
3
+ metadata.gz: 215edeebbc7b7ed9b6d92276fc90cdbb125ed186
4
+ data.tar.gz: 2a02e0c2ad1eb74152dbcb6ae8cd1feac0fda8e9
5
5
  SHA512:
6
- metadata.gz: e3bc687dd5e7a247fcdddba5bd99cc383316a7b2bc926400f16bf5ffba22e81737ef9257cac764c8a652176a92d2e9d6d60c909052d591fd036e4cb13e946f2e
7
- data.tar.gz: 666236abeef95febed89131a557fc81017a31a0735a8a365909f97d3ee23f6af15b70d44e856765970f4acb3921052ba4d50fd3ef48fdf0dd3f21f3d91df2eca
6
+ metadata.gz: 7179c103b351a0fc0b208b912ce0cc1f760b7d92f74d638b924dd9f0bde8b2e2c42b5cb310f677878801bab46f0b317e9ccedfd053edc76f5c6ed74925e1390f
7
+ data.tar.gz: 96f3a5a837676009a38e4cd69de38fed625a42e4106a78283b8d7c56873629e2480a9942903fc3d2fded0a6cf64b0adbed322a6dd2c9c633acf07655cbcfaf55
@@ -1,3 +1,3 @@
1
1
  module IuguUX
2
- VERSION = "1.0.18"
2
+ VERSION = "1.0.19"
3
3
  end
@@ -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(/[^0-9]/g, ''))
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.18
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-03-12 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script