Commit 56adcbb2 authored by Michael Koch's avatar Michael Koch
Browse files

Disable default automatic mails for studyspace - that feature isn't quite ready yet for production

parent c8dda603
......@@ -176,8 +176,8 @@ function getReservationCommentString(reservation) {
*/
function confirmReservation(fieldorid) {
let id = _isElement(fieldorid) ? parseInt($(fieldorid).attr("reservation_id")) : fieldorid;
let search = $.grep(_reservations, (r, i) => r.id === id);
let checked = (search.length > 0 && search[0].room.room_type === 5);
//let search = $.grep(_reservations, (r, i) => r.id === id);
//let checked = (search.length > 0 && search[0].room.room_type === 5);
showDialog({
text: "Wollen Sie diese Buchung best&auml;tigen?<br /><br /><input type='checkbox' id='confirm_reservation_notification' name='confirm_reservation_notification'><label for='confirm_reservation_notification'> Automatische Benachrichtigung an Buchenden schicken</label>",
......@@ -202,7 +202,7 @@ function confirmReservation(fieldorid) {
}
});
$("#confirm_reservation_notification").prop('checked', checked);
//$("#confirm_reservation_notification").prop('checked', checked);
}
/**
......@@ -212,8 +212,8 @@ function confirmReservation(fieldorid) {
*/
function denyReservation(fieldorid) {
let id = _isElement(fieldorid) ? parseInt($(fieldorid).attr("reservation_id")) : fieldorid;
let search = $.grep(_reservations, (r, i) => r.id === id);
let checked = (search.length > 0 && search[0].room.room_type === 5);
//let search = $.grep(_reservations, (r, i) => r.id === id);
//let checked = (search.length > 0 && search[0].room.room_type === 5);
showDialog({
text: "Wollen Sie diese Buchung ablehnen?<br /><br /><input type='checkbox' id='deny_reservation_notification' name='deny_reservation_notification'><label for='deny_reservation_notification'> Automatische Benachrichtigung an Buchenden schicken</label>",
......@@ -238,7 +238,7 @@ function denyReservation(fieldorid) {
}
});
$("#confirm_reservation_notification").prop('checked', checked);
//$("#confirm_reservation_notification").prop('checked', checked);
}
/**
......@@ -248,8 +248,8 @@ function denyReservation(fieldorid) {
*/
function undecideReservation(fieldorid) {
let id = _isElement(fieldorid) ? parseInt($(fieldorid).attr("reservation_id")) : fieldorid;
let search = $.grep(_reservations, (r, i) => r.id === id);
let checked = (search.length > 0 && search[0].room.room_type === 5);
//let search = $.grep(_reservations, (r, i) => r.id === id);
//let checked = (search.length > 0 && search[0].room.room_type === 5);
showDialog({
text: "Wollen Sie die Entscheidung zurückziehen?<br /><br /><input type='checkbox' id='undecide_reservation_notification' name='undecide_reservation_notification'><label for='undecide_reservation_notification'> Automatische Benachrichtigung an Buchenden schicken</label>",
......@@ -274,7 +274,7 @@ function undecideReservation(fieldorid) {
}
});
$("#confirm_reservation_notification").prop('checked', checked);
//$("#confirm_reservation_notification").prop('checked', checked);
}
/**
......
Supports Markdown
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