Permalink
Browse files

Fixing problem caused by entering decimal point into Amount field whe…

…n creating an alert
  • Loading branch information...
1 parent e658a25 commit b6d45aeb31fcdf759116955d10cb02ab351a6bc9 @codebox committed Nov 18, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 webserver/web/js/bitmeterAlert.js
View
1 webserver/web/js/bitmeterAlert.js 100755 → 100644
@@ -1049,6 +1049,7 @@ $(function(){
var bytes, amountTxt, txtValue = $('#createAlertAmount').val();
bytes = BITMETER.parseAmountValue(txtValue);
bytes = bytes || 0;
+ bytes = Math.round(bytes);
amountTxt = BITMETER.formatAmount(bytes);
$('#createAlertAmountDesc').html(amountTxt);
BITMETER.createAlertModel.setAmount(bytes);

0 comments on commit b6d45ae

Please sign in to comment.