Enable player list adjustments

This commit is contained in:
Brian Miyaji
2014-04-29 15:51:46 +10:00
parent 11dad4ab23
commit c84cd1dda1
5 changed files with 92 additions and 12 deletions

View File

@@ -145,6 +145,7 @@ jQuery(document).ready(function($){
placeholder = parseFloat($el.attr("data-placeholder"));
current_adjustment = parseFloat($el.attr("data-adjustment"));
adjustment = parseFloat($(this).val());
if(isNaN(placeholder)) placeholder = 0;
if(isNaN(current_adjustment)) current_adjustment = 0;
if(isNaN(adjustment)) adjustment = 0;
placeholder += adjustment - current_adjustment;