[guadec-web] Partially fix arbitrary fee



commit 9a1d842735530b06e31491382ef11c5c09b2debd
Author: Pascal Terjan <pterjan gmail com>
Date:   Mon Jul 14 19:29:48 2014 +0000

    Partially fix arbitrary fee

 guadec/js/calculate-total.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/guadec/js/calculate-total.js b/guadec/js/calculate-total.js
index 175f679..34abfd2 100644
--- a/guadec/js/calculate-total.js
+++ b/guadec/js/calculate-total.js
@@ -129,12 +129,16 @@ $(function() {
 
        /*Radio triggered event */
        $('input:radio[name=entry-fee]').click(function() {
-               callTotalCalculate();
+               callTotalCalculate();
        });               
-       
+
+       $('input:radio[id=entry-fee-arb]').click(function() {
+               callTotalCalculate();
+       });
+
        $('#entry-arb').focusout(function(){
+               $('input:radio[id=entry-fee-arb]').prop('value', $('#entry-arb').val());
                if($('input:radio[id=entry-fee-arb]').is(':checked')){
-                       $('input:radio[id=entry-fee-arb]').prop('value', $('#entry-arb').val()); 
                        callTotalCalculate();
                }
        });
@@ -144,7 +148,6 @@ $(function() {
          var sanitized = $(this).val().replace(/[^0-9]/g, '');
          // Update value
           $(this).val(sanitized);
-
        });
        //Enable Disable Accomodation and Lunch Selection
        $(document).ready(function() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]