From c4061a39bf58ec6e6471b2b6db47c74b5dd00c38 Mon Sep 17 00:00:00 2001 From: h3nr1ke Date: Tue, 18 Dec 2018 19:24:26 -0200 Subject: [PATCH] Adjust to unmask with precision = 0 added a .DS_Store inside .gitignore added treatment for precision = 0 during the unmask process added example with precision 0 --- .gitignore | 1 + demo/index.html | 6 ++++ src/jquery.maskMoney.js | 64 ++++++++++++++++++++++++----------------- 3 files changed, 44 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 68b9e27..aa6f28c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ bower_components/ +.DS_Store diff --git a/demo/index.html b/demo/index.html index 971afdc..bde46f1 100644 --- a/demo/index.html +++ b/demo/index.html @@ -103,6 +103,12 @@

Note: The reverse option is meant to be used with the for
$("#demo14").maskMoney({ formatOnBlur: true, reverse: true, prefix: '$', selectAllOnFocus: true, precision: 4, allowEmpty: true });
+ + +
$("#demo15").maskMoney({prefix:'R$ ', allowNegative: true, thousands:'.', precision: 0, affixesStay: true});
+