Commit 77c638b6 by Damien Moulard

fix inscription cant select shift

parent c66994cf
......@@ -150,7 +150,7 @@ function display_member_info() {
$(".shift").off("click");
$(".shift").on("click", function() {
// Subscribe to shift template
let shift_template_id = select_shift_among_compact(this, false); // method from common.js
let shift_template_id = select_shift_among_compact(null, this, false); // method from common.js
let shift_template_data = shift_templates[shift_template_id].data;// shift_templates: var from common.js
let shift_template_name = get_shift_name(shift_template_data);
......
......@@ -99,7 +99,7 @@ function single_shift_click() {
}
}
function select_shift_among_compact(clicked_item = null, subscribe = true) {
function select_shift_among_compact(event, clicked_item = null, subscribe = true) {
var clicked = clicked_item === null ? $(this) : $(clicked_item);
var day = clicked.closest('td').attr('class');
var hour = clicked.closest('tr').data('begin');
......
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