This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
eventClick return value is ignored #254
Closed

Description
According to http://fullcalendar.io/docs/mouse/eventClick/ returning false in the function should make the browser not follow the link (like preventDefault() or something). This works fine with the original calendar script, but in ui-calendar this is ignored. To reproduce:
Change the calendarDemo.js:
$scope.alertOnEventClick = function( date, jsEvent, view){
$scope.alertMessage = (date.title + ' was clicked ');
jsEvent.preventDefault();
return false;
};```
and click on the "Click for Google". Only the alert should be shown and you should stay on the site, but instead you go to google.
Metadata
Metadata
Assignees
Labels
No labels