WIP timesheet timer: ask user to start/stop working time with session/login/logout

if working time is not disabled in timesheet config, or asking is disabled in user preferences
This commit is contained in:
ralf
2022-10-13 16:30:35 +02:00
parent aa139d2f15
commit 49f608159c
5 changed files with 138 additions and 42 deletions

View File

@ -402,8 +402,10 @@ import "sortablejs/Sortable.min.js";
{
$logout.on('click', function(e){
e.preventDefault();
self.callOnLogout(e);
window.framework.redirect(this.href);
egw.onLogout_timer().then(() => {
self.callOnLogout(e);
window.framework.redirect(this.href);
});
});
$logout.addClass('onLogout');
}
@ -556,4 +558,4 @@ import "sortablejs/Sortable.min.js";
}
}
});
})(window);
})(window);