Skip to content

Commit b48485f

Browse files
committed
Format currency after edit
1 parent a0e83d7 commit b48485f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Griddly/Views/Home/Editly.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
formatText: function (val, template) {
5656
if (template.is("#edit-currency")) {
57-
return "$" + val;
57+
return "$" + parseFloat(val).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
5858
} else return val;
5959
},
6060
save: function (o) {

0 commit comments

Comments
 (0)