mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 16:02:16 +00:00
Fixed changing between rig/non-rig
This commit is contained in:
@@ -57,14 +57,14 @@
|
|||||||
$('#is_rig-selector button').on('click', function () {
|
$('#is_rig-selector button').on('click', function () {
|
||||||
$('.form-non_rig').slideDown();
|
$('.form-non_rig').slideDown();
|
||||||
if ($(this).data('is_rig') == 1) {
|
if ($(this).data('is_rig') == 1) {
|
||||||
$('#{{form.is_rig.auto_id}}').attr('checked', true);
|
$('#{{form.is_rig.auto_id}}').prop('checked', true);
|
||||||
if ($('.form-non_rig').is(':hidden')) {
|
if ($('.form-non_rig').is(':hidden')) {
|
||||||
$('.form-is_rig').show();
|
$('.form-is_rig').show();
|
||||||
} else {
|
} else {
|
||||||
$('.form-is_rig').slideDown();
|
$('.form-is_rig').slideDown();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$('#{{form.is_rig.auto_id}}').attr('checked', false);
|
$('#{{form.is_rig.auto_id}}').prop('checked', false);
|
||||||
$('.form-is_rig').slideUp();
|
$('.form-is_rig').slideUp();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user