eventClick: function(calEvent, jsEvent, view) {
if (Drupal.settings.fullcalendar.colorbox) {
// Open in colorbox if exists, else open in new window.
if ($.colorbox) {
$.colorbox({href:calEvent.url, iframe:true, width:'80%', height:'80%'});
} else {
window.open(calEvent.url);
}
} else {
window.open(calEvent.url);
}
return false;
}
change to
eventClick: function(calEvent, jsEvent, view) {
if (Drupal.settings.fullcalendar.colorbox) {
// Open in colorbox if exists, else open in new window.
if ($.colorbox) {
$.colorbox({href:calEvent.url, iframe:true, width:'80%', height:'80%'});
return false;
} else {
window.open(calEvent.url);
}
} else {
window.open(calEvent.url);
}
}
In the views.js code. The return false means the page will open in a new window. But it doesn't rly work yet cause it opens the event in a new tab and in the same window.
#2 worked for me. If this feature is not going to be made into a setting on this page http://yoursite.com/admin/settings/fullcalendar . Then this should be mentioned in the module documentation
Comments
Comment #1
aspilicious commentedNormally you should
change to
In the views.js code. The return false means the page will open in a new window. But it doesn't rly work yet cause it opens the event in a new tab and in the same window.
Investigating...
Comment #2
aspilicious commentedIt's even easier.
1) Open the fullcalendar.view.js file.
2) find all the instances of window.open(calEvent.url);
3) replace them by window.open(calEvent.url, _self);
Tested locally, works :)
Need more options? http://www.w3schools.com/jsref/met_win_open.asp
Comment #3
darsic commentedThank you very much, it works :)
I spend a lot of time, trying to find this ... how could i miss this instance :))
Chears.
Comment #4
darsic commentedFixed.
Comment #5
tim.plunkettComment #6
TimelessDomain commented#2 worked for me. If this feature is not going to be made into a setting on this page http://yoursite.com/admin/settings/fullcalendar . Then this should be mentioned in the module documentation
Comment #7
tim.plunkettOh, this got implemented over here: #1050530: target window.