Fix total price for tickets

While buying the ticket, user was only able to see the integer part in total.So in javascript parseInt was replaced with parseFloat to show the decimal part too
Fixes https://github.com/openSUSE/osem/issues/1702
This commit is contained in:
rahul 2017-09-18 19:07:13 +05:30
parent ec8fbb21d7
commit 82b5f9083a

View file

@ -9,7 +9,7 @@ function update_price($this){
// Calculate total price
var total = 0;
$('.total_row').each(function( index ) {
total += parseInt($(this).text());
total += parseFloat($(this).text());
});
$('#total_price').text(total);
}