ajusta y agrega vista de lista al calendario

This commit is contained in:
Germán Correa 2021-09-03 03:07:12 +07:00
parent 5e1422f7ce
commit 0842aaeaf4

View File

@ -55,9 +55,7 @@ document.addEventListener("DOMContentLoaded", function () {
url: "/api/eventos/premiados",
color: "darkred",
},
{ url:"/api/eventos/sesiones/",
color: "gray",
},
{ url: "/api/eventos/sesiones/", color: "gray" },
{
events: function (info, success, fail) {
let comisiones = [];
@ -72,7 +70,7 @@ document.addEventListener("DOMContentLoaded", function () {
});
}
success(comisiones);
}
},
},
{
events: function (info, success, fail) {
@ -82,16 +80,14 @@ document.addEventListener("DOMContentLoaded", function () {
end: "2019-09-13T20:00-0300",
speaker: { nombre: "organizadores" },
color: "black",
}
success([asamblea])
}
}
};
success([asamblea]);
},
},
],
headerToolbar: {
center: "timeGridAll,timeGridThree,timeGridOne",
center: "timeGridAll,timeGridThree,timeGridOne,listView",
},
eventTimeFormat: {
hour: "numeric",
@ -135,7 +131,18 @@ document.addEventListener("DOMContentLoaded", function () {
duration: { days: 1 },
buttonText: "1 dia",
},
duration: { days: 1 },
dayGridD: {
type: "dayGridDay",
},
dayGridW: {
type: "dayGridWeek",
duration: { days: 2 },
},
listView:{
type:"listWeek",
buttonText:"Lista"
},
},
});
calendar.render();
@ -152,6 +159,7 @@ document.addEventListener("DOMContentLoaded", function () {
start: "2021-09-13",
end: "2021-09-18",
});
calendar.changeView("timeGridAll");
break;
case "UTC":
calendar.setOption("slotMinTime", "14:00:00");
@ -161,8 +169,10 @@ document.addEventListener("DOMContentLoaded", function () {
start: "2021-09-13",
end: "2021-09-18",
});
calendar.changeView("timeGridAll");
break;
default:
calendar.changeView("dayGridW");
let initial = moment("2021-09-13T14:00Z");
let final = moment("2021-09-17T23:30Z");
let offset = initial.utcOffset();