Redraw del Calendar
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C188
This commit is contained in:
parent
dd6526e86d
commit
b832030be0
1 changed files with 14 additions and 3 deletions
|
|
@ -1456,6 +1456,11 @@ this.EventoGuardado = function (data) {
|
|||
var tableDocEvento = $('#tableDocEvento').DataTable();
|
||||
tableDocEvento.clear().draw();
|
||||
|
||||
$('#calendar').fullCalendar('removeEvents');
|
||||
$('#calendar').fullCalendar('addEventSource', model.EventosJSON);
|
||||
|
||||
//Calendario(model.EventosJSON);
|
||||
|
||||
CargarForo();
|
||||
ENDREQUEST();
|
||||
}
|
||||
|
|
@ -1507,7 +1512,11 @@ this.ModalEventoPopUp = function (evento) {
|
|||
}
|
||||
|
||||
|
||||
this.LimpiarModalevento = function () {
|
||||
this.LimpiarModalevento = function () {
|
||||
|
||||
var tableDocEvento = $('#tableDocEvento').DataTable();
|
||||
tableDocEvento.clear().draw();
|
||||
|
||||
$("#txtTituloEvento").val("");
|
||||
$("#txtDescripcionEvento").val("");
|
||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||
|
|
@ -1523,15 +1532,17 @@ this.Calendario = function (data) {
|
|||
ModalEventoPopUp(event);
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
selectable: true,
|
||||
eventLimit: true,
|
||||
events:data,
|
||||
select: function (startDate, endDate) {
|
||||
ModalEvento(startDate.format(), endDate.format());
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#modalCalendario').on('loaded.bs.modal', function (e) {
|
||||
$('#calendar').fullCalendar('render');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue