Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add currency sign to give_format_currency() #486

Merged
merged 1 commit into from
Feb 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

# Gulp / Grunt
.sass-cache/*
bower/*
node_modules/*
/bower
/node_modules

# Unit tests
/tmp
/tests/bin/tmp
/tests/bin/tmp
140 changes: 70 additions & 70 deletions assets/css/give-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/give-admin.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/give-admin.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/frontend/give-checkout-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jQuery( function ( $ ) {
*/
function give_format_currency( price ) {
return accounting.formatMoney( price, {
symbol : '',
symbol : give_global_vars.currency_sign,
decimal : give_global_vars.decimal_separator,
thousand : give_global_vars.thousands_separator,
precision: give_global_vars.number_decimals
Expand Down Expand Up @@ -311,7 +311,7 @@ jQuery( function ( $ ) {

//Update hidden price field
parent_form.find( '.give-amount-hidden' ).val( this_amount );

//update custom amount field
parent_form.find( '.give-amount-top' ).val( this_amount );
parent_form.find( 'span.give-amount-top' ).text( this_amount );
Expand Down
Loading