equal
deleted
inserted
replaced
17 } else { |
17 } else { |
18 $('#id_accommodation_days').removeAttr('disabled'); |
18 $('#id_accommodation_days').removeAttr('disabled'); |
19 $('#id_sex').removeAttr('disabled'); |
19 $('#id_sex').removeAttr('disabled'); |
20 } |
20 } |
21 }); |
21 }); |
|
22 |
|
23 if (!$('#id_paid').is(':checked')) { |
|
24 $('#id_type').attr('disabled', 'disabled'); |
|
25 $('#id_details').attr('disabled', 'disabled'); |
|
26 } |
|
27 $('#id_paid').change(function() { |
|
28 if (!$('#id_paid').is(':checked')) { |
|
29 $('#id_type').attr('disabled', 'disabled'); |
|
30 $('#id_details').attr('disabled', 'disabled'); |
|
31 } else { |
|
32 $('#id_type').removeAttr('disabled'); |
|
33 $('#id_details').removeAttr('disabled'); |
|
34 } |
|
35 }); |
22 }); |
36 }); |
23 |
37 |
24 |
38 |
25 </script> |
39 </script> |
26 {% endblock addscripts %} |
40 {% endblock addscripts %} |