Commit 1d14b881 authored by Michael Koch's avatar Michael Koch
Browse files

Move check for subject to room_type !== 1 && !== 5

parent 1ca9f791
......@@ -213,13 +213,6 @@ function checkNewReservationForm() {
};
}
if ($("#new_reservation_subject").val() === "") {
return {
'success': false,
'reason': 'subject_invalid'
};
}
if (! _validateDate($("#new_reservation_from_event").val())) {
return {
'success': false,
......@@ -263,6 +256,13 @@ function checkNewReservationForm() {
}
if (r[0].room_type !== 1 && r[0].room_type !== 5) {
if ($("#new_reservation_subject").val() === "") {
return {
'success': false,
'reason': 'subject_invalid'
};
}
if (! _validateDate($("#new_reservation_to_event").val())) {
return {
'success': false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment