projects
/
WP-Plugins
/
glm-member-db-billing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88aaef9
)
Update price format for total
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 6 Apr 2018 13:32:37 +0000
(09:32 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 6 Apr 2018 13:32:37 +0000
(09:32 -0400)
Use money format.
views/admin/billing/renew.html
patch
|
blob
|
history
diff --git
a/views/admin/billing/renew.html
b/views/admin/billing/renew.html
index
6a4861d
..
d6dad41
100644
(file)
--- a/
views/admin/billing/renew.html
+++ b/
views/admin/billing/renew.html
@@
-283,6
+283,11
@@
jQuery(document).ready(function($){
}
});
+ var formatter = new Intl.NumberFormat('en-US', {
+ style: 'currency',
+ currency: 'USD',
+ minimunFractionDigits: 2
+ });
function getPageTotal(){
// Calculate the total for this page.
@@
-302,7
+307,8
@@
jQuery(document).ready(function($){
member_renewing_amount += parseFloat( $(this).data('amount') );
}
});
- $('#renew_total').html( '$' + member_renewing_amount );
+
+ $('#renew_total').html( formatter.format( member_renewing_amount ) );
$('#total_renew_amount').val( member_renewing_amount );
}