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 { ...@@ -12,6 +12,10 @@ body {
} }
} }
/* -- Calendar */
#shift_choice .shift {
padding-left: 5px;
}
/* -- Tiles */ /* -- Tiles */
.tiles_container { .tiles_container {
......
...@@ -96,11 +96,9 @@ function process_asked_shift_template_change(shift_t_id) { ...@@ -96,11 +96,9 @@ function process_asked_shift_template_change(shift_t_id) {
function edit_shift_template_registration() { function edit_shift_template_registration() {
const calendar_params = {external: true, without_modal: true, shift_listener: true}; const calendar_params = {external: true, without_modal: true, shift_listener: true};
if (calendar == null) calendar = $('#modal-calendar-choice').clone(); $('#modal-calendar-choice tbody').empty();
if ($('#modal-calendar-choice').html().length > 0) { calendar = $('#modal-calendar-choice').clone();
$('#modal-calendar-choice').empty();
}
calendar.find('.oddeven_selector').empty(); calendar.find('.oddeven_selector').empty();
displayMsg(calendar.html()); displayMsg(calendar.html());
$('#week_types').find('input') $('#week_types').find('input')
...@@ -129,7 +127,8 @@ function init_home() { ...@@ -129,7 +127,8 @@ function init_home() {
goto('faq'); 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') $('#week_types').find('input')
.change(filter_weeks); .change(filter_weeks);
e.preventDefault(); 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