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