|
|
@@ -16,13 +16,13 @@ Optional extensions on the jquery.inputmask base
|
|
|
opts.integerDigits = opts.repeat;
|
|
|
}
|
|
|
opts.repeat = 0;
|
|
|
- if(opts.groupSeparator == opts.radixPoint){ //treat equal separator and radixpoint
|
|
|
- if(opts.radixPoint == ".")
|
|
|
- opts.groupSeparator = ",";
|
|
|
- else if(opts.radixPoint == ",")
|
|
|
- opts.groupSeparator = ".";
|
|
|
- else opts.groupSeparator = "";
|
|
|
- }
|
|
|
+ if (opts.groupSeparator == opts.radixPoint) { //treat equal separator and radixpoint
|
|
|
+ if (opts.radixPoint == ".")
|
|
|
+ opts.groupSeparator = ",";
|
|
|
+ else if (opts.radixPoint == ",")
|
|
|
+ opts.groupSeparator = ".";
|
|
|
+ else opts.groupSeparator = "";
|
|
|
+ }
|
|
|
opts.autoGroup = opts.autoGroup && opts.groupSeparator != "";
|
|
|
|
|
|
if (opts.autoGroup && isFinite(opts.integerDigits)) {
|
|
|
@@ -268,7 +268,7 @@ Optional extensions on the jquery.inputmask base
|
|
|
}
|
|
|
},
|
|
|
'currency': {
|
|
|
- prefix: "$",
|
|
|
+ prefix: "$ ",
|
|
|
groupSeparator: ",",
|
|
|
radixPoint: ".",
|
|
|
alias: "numeric",
|