Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
cast data to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Jan 9, 2016
1 parent c80f653 commit 8457120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/views/Datatable/render_functions.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
var valueNow = 'aria-valuenow="' + data + '"';
var valueMin = 'aria-valuemin="' + min + '"';
var valueMax = 'aria-valuemax="' + max + '"';
var size = (data-min)*100/(max-min);
var intData = parseInt(data, 10);
var size = (intData-min)*100/(max-min);
var classNames = 'class="progress-bar ';
if (true == multi) {
Expand Down

0 comments on commit 8457120

Please sign in to comment.