diff --git a/handlers/gold.py b/handlers/gold.py index 9ab9830..1b8a7d4 100644 --- a/handlers/gold.py +++ b/handlers/gold.py @@ -63,7 +63,7 @@ def post_withdraw(amount, name, address): for job in session.user.jobs: if not job.completed and not job.canceled: outstanding += job.max_pay - if amount < 0 or amount > session.user.gold - outstanding: + if amount < 10 or amount > session.user.gold - outstanding: redirect(get_withdraw) price = amount * 10 # Put it into cents diff --git a/scripts/withdraw.coffee b/scripts/withdraw.coffee index cfc931b..9f1a659 100644 --- a/scripts/withdraw.coffee +++ b/scripts/withdraw.coffee @@ -1,5 +1,8 @@ $(document).ready -> $('#next-1').click -> + if ~~$('#amount').val() < 10 + alert('Minimum amount for withdrawal is 10 gold') + return false $('#first').hide 'fast' $('#second').show 'fast' false diff --git a/templates/char/create.html b/templates/char/create.html index ee0ab15..0136eb2 100644 --- a/templates/char/create.html +++ b/templates/char/create.html @@ -17,7 +17,6 @@