Only rest write of the translation and fix up the preview window in first event on backend, (only work for more than one event).
I think the problem is that I add parseInt, in event id
function viewModal(id){
$.getJSON("../public/api/api.json",function(data){
$.each(data.kalendar,function(i,item){
if(item.id == id){ //
var html = apprise("<h3>"+ item.title + "</h3>" +
"<p><b><?php echo __('Info','kalendar');?>: </b>" + item.content + "</p>" +
"<p><b><?php echo __('Address','kalendar');?>: </b>" + item.address + "</p>" +
"<p><b><?php echo __('Hour','kalendar');?>: </b>" + item.time + "</p>",
{
"animate" : 800,
"textOk" : "<?php echo __('Close','kalendar'); ?>"});
return html;
}
});
});
}
// i call with onclick="return viewModal(<?php echo $row['id']; ?>)">
..::: Moncho Varela ::::.. ..::: @Nakome ::::.. ..::: Github ::::..