canvs / fullcalendar

Automatically exported from code.google.com/p/fullcalendar
0 stars 0 forks source link

Event URL open in new window #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to be able to have links open in a new window or tab.  I'm not
sure where I can add the functionality in.  

Original issue reported on code.google.com by jstrong...@gmail.com on 5 Jun 2009 at 4:31

GoogleCodeExporter commented 9 years ago
Sorry I posted this a little to quickly I guess.  I couldn't see where to 
change the
Issue Type and Priority, sorry.  

I also found what I needed to do.  If anyone wants to do what I did, just find 
line
#733 and change it or comment it out and add "if (event.url) 
window.open(event.url);"

Cheers and thanks for the great plugin Adam.

Original comment by jstrong...@gmail.com on 5 Jun 2009 at 4:57

GoogleCodeExporter commented 9 years ago
glad you got it to work. editing the fullcalendar source is not the best way,
however. it is best to do it as a triggered-event, the "eventClick" option in 
particular:

eventClick: function(event, element) {
   if (event.url) window.open(event.url, "windowname", "width=500,height=500");
   return false;
}

Original comment by adamrs...@gmail.com on 6 Jun 2009 at 5:48