[guadec-web] Try fixing unchecking



commit e269aad9733212b5a0baa458b829a66a539e8f88
Author: Pascal Terjan <pterjan gmail com>
Date:   Mon Jul 14 19:58:19 2014 +0000

    Try fixing unchecking

 guadec/js/calculate-total.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/guadec/js/calculate-total.js b/guadec/js/calculate-total.js
index 34abfd2..31e9d56 100644
--- a/guadec/js/calculate-total.js
+++ b/guadec/js/calculate-total.js
@@ -67,7 +67,7 @@ function enableDisableA(obj) {
                $("[name=departure]").prop("disabled", false);
                $('[name=bday]').prop("disabled", false);
                $("[name=room_type]").prop("disabled", false);
-               $("[name=sponsored]").prop("checked", false);
+               $("[name=sponsored]").removeAttr('checked');
                $(".box-options-accom").removeClass("disabled");
        }
        else {
@@ -80,7 +80,7 @@ function enableDisableA(obj) {
 }
 function enableDisableS(obj) {
        if ($(obj).is(":checked")) {
-               $('[name=accomodation]').prop("checked", false);
+               $('[name=accomodation]').removeAttr('checked');
                enableDisableA($('[name=accomodation]'));
        }
 }


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