search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

problem on Event click

Asked by yahya
12 days ago.

// i clicked on a event , the modal is showing , when i change in the first event all is fine but when i clicked another time on another event the args.e.id() have two values , the first event id and the second , and the two events changed , can you help me?

eventClickHandling: "Update",
onEventClick : function(args) {

//var id = args.e.id();
//var resource = args.resource;
$('#tapis-updatetext-event').modal();
$('#event-f').submit(function (event) {
event.preventDefault();
var data = {};
var te;
$('#event-f').serializeArray().forEach(function (item) {
//data[item.name] = item.value;
te=item.value;

});
$("#event-f").trigger("reset");
$('#tapis-updatetext-event').modal('hide');
/*var dateS = new DayPilot.Date(args.start);
var dateE = new DayPilot.Date(args.end);*/
axios.get('{{ route("tapis.event.updatetext") }}', {
params:{
id: args.e.id(),
resource: args.resource,
text:te
}
}).then(function (response) {
console.log(args.e.id());
loadEvents();
});
});

},

No reply yet.
New Reply
This reply is
Your name (optional):