Commit e180c8f7 by François C.

#3784 : Fix change shift template icon click bug

parent 58641451
Pipeline #2516 passed with stage
in 1 minute 28 seconds
......@@ -12,6 +12,10 @@ body {
}
}
/* -- Calendar */
#shift_choice .shift {
padding-left: 5px;
}
/* -- Tiles */
.tiles_container {
......
......@@ -96,11 +96,9 @@ function process_asked_shift_template_change(shift_t_id) {
function edit_shift_template_registration() {
const calendar_params = {external: true, without_modal: true, shift_listener: true};
if (calendar == null) calendar = $('#modal-calendar-choice').clone();
if ($('#modal-calendar-choice').html().length > 0) {
$('#modal-calendar-choice').empty();
}
$('#modal-calendar-choice tbody').empty();
calendar = $('#modal-calendar-choice').clone();
calendar.find('.oddeven_selector').empty();
displayMsg(calendar.html());
$('#week_types').find('input')
......@@ -129,7 +127,8 @@ function init_home() {
goto('faq');
});
$(".member_shift_name_area").on("click", ".fa-edit", (e) => {
$(document).off("click.change_shift_reg");
$(document).on("click.change_shift_reg", ".member_shift_name_area .fa-edit", (e) => {
$('#week_types').find('input')
.change(filter_weeks);
e.preventDefault();
......
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