[guadec-web] Small fixes in checkbox behaviour



commit b7378cc8c0a3129986a36e2655146639dcb98c87
Author: Pascal Terjan <pterjan gmail com>
Date:   Mon Jul 14 17:15:24 2014 +0000

    Small fixes in checkbox behaviour

 guadec/js/calculate-total.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/guadec/js/calculate-total.js b/guadec/js/calculate-total.js
index abd5f4b..1e952f0 100644
--- a/guadec/js/calculate-total.js
+++ b/guadec/js/calculate-total.js
@@ -66,12 +66,14 @@ function enableDisableA(obj) {
                $("[name=arrival]").prop("disabled", false);
                $("[name=departure]").prop("disabled", false);
                $('[name=bday]').prop("disabled", false);
+               $("[name=room_type]").prop("disabled", false);
                $("[name=sponsored]").prop("checked", false);
                $(".box-options-accom").removeClass("disabled");
        }
        else {
                $("[name=arrival]").prop("disabled", true);
                $("[name=departure]").prop("disabled", true);
+               $("[name=room_type]").prop("disabled", true);
                $("[name=bday]").prop("disabled", true);
                $(".box-options-accom").addClass("disabled");
        }
@@ -79,6 +81,7 @@ function enableDisableA(obj) {
 function enableDisableS(obj) {
        if ($(obj).is(":checked")) {
                $('[name=accomodation]').prop("checked", false);
+               enableDisableA($('[name=accomodation]'));
        }
 }
 


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