diff options
author | Git <git@what.cd> | 2013-07-10 00:08:53 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-07-10 00:08:53 +0000 |
commit | 3b10c502d6b723932024a1797ddf01e37bd82785 (patch) | |
tree | f23267880d3017e224a501abd6d3bd90e057aa09 /static/functions/requests.js | |
parent | 186c5ca8978766c12358a9c3f0344b74c1850ceb (diff) | |
download | Gazelle-3b10c502d6b723932024a1797ddf01e37bd82785.zip Gazelle-3b10c502d6b723932024a1797ddf01e37bd82785.tar.gz Gazelle-3b10c502d6b723932024a1797ddf01e37bd82785.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/requests.js')
-rw-r--r-- | static/functions/requests.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/static/functions/requests.js b/static/functions/requests.js index a9b0ce6..57a48cd 100644 --- a/static/functions/requests.js +++ b/static/functions/requests.js @@ -60,12 +60,14 @@ function Calculate() { if (amt > $('#current_uploaded').raw().value) { $('#new_uploaded').raw().innerHTML = "You can't afford that request!"; $('#new_bounty').raw().innerHTML = "0.00 MB"; + $('#bounty_after_tax').raw().innerHTML = "0.00 MB"; $('#button').raw().disabled = true; } else if (isNaN($('#amount_box').raw().value) || (window.location.search.indexOf('action=new') != -1 && $('#amount_box').raw().value*mul < 100*1024*1024) || (window.location.search.indexOf('action=view') != -1 && $('#amount_box').raw().value*mul < 20*1024*1024)) { $('#new_uploaded').raw().innerHTML = get_size(($('#current_uploaded').raw().value)); $('#new_bounty').raw().innerHTML = "0.00 MB"; + $('#bounty_after_tax').raw().innerHTML = "0.00 MB"; $('#button').raw().disabled = true; } else { $('#button').raw().disabled = false; @@ -73,6 +75,7 @@ function Calculate() { $('#new_uploaded').raw().innerHTML = get_size(($('#current_uploaded').raw().value) - amt); $('#new_ratio').raw().innerHTML = ratio($('#current_uploaded').raw().value - amt, $('#current_downloaded').raw().value); $('#new_bounty').raw().innerHTML = get_size(mul * $('#amount_box').raw().value); + $('#bounty_after_tax').raw().innerHTML = get_size(mul * 0.9 * $('#amount_box').raw().value); } } |