mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 06:30:23 +02:00
WIP timesheet timers: dont ask again to start working time, if user denied it in this session or last 18 hours
This commit is contained in:
@ -518,13 +518,17 @@ egw.extend('timer', egw.MODULE_GLOBAL, function()
|
||||
if (pref === 'no') return;
|
||||
|
||||
// overall timer not running, ask to start
|
||||
if (overall && !overall.start)
|
||||
if (overall && !overall.start && !state.overall.dont_ask)
|
||||
{
|
||||
Et2Dialog.show_dialog((button) => {
|
||||
if (button === Et2Dialog.YES_BUTTON)
|
||||
{
|
||||
timerAction('overall-start');
|
||||
}
|
||||
else
|
||||
{
|
||||
egw.request('EGroupware\\Timesheet\\Events::ajax_dontAskAgainWorkingTime');
|
||||
}
|
||||
}, 'Do you want to start your working time?', 'Working time', {}, Et2Dialog.BUTTONS_YES_NO);
|
||||
}
|
||||
// overall timer running for more than 16 hours, ask to stop
|
||||
|
Reference in New Issue
Block a user