WIP timesheet timer: persistence and opening a new timesheet when stoping the specific timer

This commit is contained in:
ralf
2022-09-30 19:06:47 +02:00
parent d8e54c72c8
commit 0a9526c152
6 changed files with 308 additions and 13 deletions

View File

@ -118,7 +118,12 @@ egw.extend('timer', egw.MODULE_GLOBAL, function()
break;
}
// persist state
egw.request('timesheet.timesheet_bo.ajax_event', [getState(_action)])
egw.request('timesheet.EGroupware\\Timesheet\\Events.ajax_event', [getState(_action)]).then(() => {
if (_action === 'specific-stop')
{
egw.open(null, 'timesheet', 'add', {events: 'specific'});
}
});
}
/**