members-space-faq.js 1.64 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

function init_faq() {
    $("#unsuscribe_form_link_btn").prop("href", unsuscribe_form_link);
    $("#unsuscribe_form_link_btn2").prop("href", unsuscribe_form_link);
    $("#change_template_form_link_btn").prop("href", change_template_form_link);
    $("#template_unsubscribe_form_link_btn").prop("href", template_unsubscribe_form_link);
    $("#late_service_form_link_btn").prop("href", late_service_form_link);
    $("#sick_leave_form_link_btn").prop("href", sick_leave_form_link);
    $("#associated_subscribe_form_link_btn").prop("href", associated_subscribe_form_link);
    $("#associated_unsubscribe_form_link_btn").prop("href", associated_unsubscribe_form_link);
    $("#covid_form_link_btn").prop("href", covid_form_link);
    $("#covid_end_form_link_btn").prop("href", covid_end_form_link);
    $("#underage_subscribe_form_link_btn").prop("href", underage_subscribe_form_link);
    $("#change_email_form_link_btn").prop("href", change_email_form_link);
    $("#coop_unsubscribe_form_link_btn").prop("href", coop_unsubscribe_form_link);
    $("#helper_subscribe_form_link_btn").prop("href", helper_subscribe_form_link);
    $("#helper_unsubscribe_form_link_btn").prop("href", helper_unsubscribe_form_link);
18
    $(".ask_bdm_form_link").prop("href", request_form_link);
Félicie committed
19 20

    display_messages_for_attached_people();
Félicie committed
21
    display_messages_for_service_exchange_24h_before();
22 23
}

François C. committed
24
$(document).on('click', "#shift_exchange_btn", () => {
Damien Moulard committed
25
    goto('echange-de-services');
26 27
});

Félicie committed
28 29 30 31 32 33 34
function display_messages_for_attached_people() {
    if (block_actions_for_attached_people === "False") {
        $(".attached-unblocked").show();
    } else {
        $(".attached-blocked").show();
    }
}
Félicie committed
35 36