I can't seem to figure out how to point to the deleteEntry function inside fullcalendar.js.
My goal is to ask the user a question after they agree to the deletion and to send the answer to that question along in the delete url. I will act ion this information in the onDeleteRowsForm plugin.
My thinking was that I would place code in the visuatization_1.js file (which does get included by the way) in a document ready function. something like this:
But I cannot seem to find the right way to get a pointer to the deleteEntry function. I have tried FullCalendar.deleteEntry, visualization_1.FullCalendar,deleteEntry, visualization_1.deleteEntry etc. on the first var line. They all come back undefined.
Can you help me out? Thanks.
My goal is to ask the user a question after they agree to the deletion and to send the answer to that question along in the delete url. I will act ion this information in the onDeleteRowsForm plugin.
My thinking was that I would place code in the visuatization_1.js file (which does get included by the way) in a document ready function. something like this:
Code:
jQuery('document').ready( function()
{
var fabDeleteEntry = deleteEntry;
deleteEntry = function(calEvent) {
if (window.confirm(Joomla.JText._('PLG_VISUALIZATION_FULLCALENDAR_CONF_DELETE'))) {
var extra = false;
if (window.confirm('do you want special stuff?')) {
extra = true;
}
this.ajax.deleteEvent.options.data = {'id': calEvent.rowid, 'listid': calEvent.listid};
if (extra == true)
this.ajax.deleteEvent.options.data.extra = true;
this.ajax.deleteEvent.send();
}
}
});
Can you help me out? Thanks.