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();
|
var tableDocEvento = $('#tableDocEvento').DataTable();
|
||||||
tableDocEvento.clear().draw();
|
tableDocEvento.clear().draw();
|
||||||
|
|
||||||
|
$('#calendar').fullCalendar('removeEvents');
|
||||||
|
$('#calendar').fullCalendar('addEventSource', model.EventosJSON);
|
||||||
|
|
||||||
|
//Calendario(model.EventosJSON);
|
||||||
|
|
||||||
CargarForo();
|
CargarForo();
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
}
|
}
|
||||||
|
|
@ -1507,7 +1512,11 @@ this.ModalEventoPopUp = function (evento) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.LimpiarModalevento = function () {
|
this.LimpiarModalevento = function () {
|
||||||
|
|
||||||
|
var tableDocEvento = $('#tableDocEvento').DataTable();
|
||||||
|
tableDocEvento.clear().draw();
|
||||||
|
|
||||||
$("#txtTituloEvento").val("");
|
$("#txtTituloEvento").val("");
|
||||||
$("#txtDescripcionEvento").val("");
|
$("#txtDescripcionEvento").val("");
|
||||||
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
$("#txtUbicacion").val($("#txtNombreProyecto").val());
|
||||||
|
|
@ -1524,11 +1533,13 @@ this.Calendario = function (data) {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
selectable: true,
|
selectable: true,
|
||||||
eventLimit: true,
|
eventLimit: true,
|
||||||
events:data,
|
events:data,
|
||||||
select: function (startDate, endDate) {
|
select: function (startDate, endDate) {
|
||||||
ModalEvento(startDate.format(), endDate.format());
|
ModalEvento(startDate.format(), endDate.format());
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue