Check users in in invoices when modifying number of guests
This commit is contained in:
parent
4d8b63e0c4
commit
dbceafd606
@ -26,10 +26,15 @@ function set_days_month_year() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function guest_user_label(id) {
|
function guest_user_label(id) {
|
||||||
if(document.getElementById('guest_user_'+id).value > 1)
|
if(document.getElementById('guest_user_'+id).value > 1) {
|
||||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guests';
|
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guests';
|
||||||
|
|
||||||
|
if(!document.getElementById('users_in_'+id).checked) {
|
||||||
|
document.getElementById('users_in_'+id).checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guest';
|
document.getElementById('guest_user_'+id+'_label').innerHTML = ' guest';
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle_password(id) {
|
function toggle_password(id) {
|
||||||
|
@ -26,8 +26,13 @@ function set_days_month_year() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function guest_user_label(id) {
|
function guest_user_label(id) {
|
||||||
if(document.getElementById('guest_user_'+id).value > 1)
|
if(document.getElementById('guest_user_'+id).value > 1) {
|
||||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invités';
|
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invités';
|
||||||
|
|
||||||
|
if(!document.getElementById('users_in_'+id).checked) {
|
||||||
|
document.getElementById('users_in_'+id).checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invité';
|
document.getElementById('guest_user_'+id+'_label').innerHTML = ' invité';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user