Commit ad099012 by Etienne Freiss

lint

parent d82c419f
Pipeline #1547 failed with stage
in 1 minute 29 seconds
...@@ -188,10 +188,12 @@ function init_calendar_page() { ...@@ -188,10 +188,12 @@ function init_calendar_page() {
closeModal, closeModal,
"J'ai compris" "J'ai compris"
); );
}).show(); })
.show();
} else { } else {
$("#calendar_explaination_button").hide(); $("#calendar_explaination_button").hide();
$("#calendar_explaination_area").html(template_explanations.html()).show(); $("#calendar_explaination_area").html(template_explanations.html())
.show();
} }
if (incoming_shifts !== null) { if (incoming_shifts !== null) {
...@@ -366,14 +368,13 @@ function init_shifts_exchange() { ...@@ -366,14 +368,13 @@ function init_shifts_exchange() {
$(this).removeClass('active'); $(this).removeClass('active');
}); });
}); });
} } else if (
else if (
partner_data.comite === "True") { partner_data.comite === "True") {
let msg_template = $("#comite_template"); let msg_template = $("#comite_template");
$(".comite_content_msg").html(msg_template.html()); $(".comite_content_msg").html(msg_template.html());
$("#comite_content").show(); $("#comite_content").show();
} } else if (partner_data.cooperative_state === 'suspended'
else if (partner_data.cooperative_state === 'suspended'
&& partner_data.date_delay_stop === 'False') { && partner_data.date_delay_stop === 'False') {
$("#suspended_content .makeups_nb").text(partner_data.makeups_to_do); $("#suspended_content .makeups_nb").text(partner_data.makeups_to_do);
...@@ -396,7 +397,7 @@ function init_shifts_exchange() { ...@@ -396,7 +397,7 @@ function init_shifts_exchange() {
init_calendar_page(); init_calendar_page();
} }
$(window).smartresize(function(){ $(window).smartresize(function() {
vw = window.innerWidth; vw = window.innerWidth;
init_calendar_page(); init_calendar_page();
}); });
......
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