calendar.js: save selected day start time

set the day start time to the last selecved value for each studio
the user is assigned to.
This commit is contained in:
Milan
2021-02-05 22:59:31 +01:00
parent 7ffc6914b9
commit 15708d951b
5 changed files with 277 additions and 2 deletions

View File

@@ -411,6 +411,15 @@ function getUrl(name,value){
return url;
}
function updateDayStart(){
var url = "set-user-day-start.cgi?";
url += "&project_id=" + getProjectId();
url += "&studio_id=" + getStudioId();
url += "&day_start=" + $('#day_start').val();
console.log(url);
$.get(url);
}
// to be called from elements directly
function reloadCalendar(){
var url=window.location.href;