Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you need to modify fullcalendar to make this work. – http://arshaw.com/fullcalendar/docs/mouse/eventClick/

    – you can add this javascript at wp-fullcalendar.php under function footer_js()

    Thread Starter Reactor89

    (@reactor89)

    Pardon my naivety but the code in wp-fullcalendar.php seems quite different from the code on the arshaw.com site (different set of variables at the very least).

    Is there any documentation of what lines of code with wp-fullcalendar.php generate links? Or will I need to start experimenting?

    Thanks for the response,

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes that’s correct However you can still used the api from arshaw.

    eg. something like

    eventSources: [{
    							url : WPFC.ajaxurl,
    							data : wpfc_data,
    							ignoreTimezone: true,
    							allDayDefault: false
    					}],
    					eventClick: function(event) {
    						if (event.url) {
    				            window.open(event.url);
    				            return false;
    				        }
    					},

    noticed that I just added these lines

    eventClick: function(event) {
    						if (event.url) {
    				            window.open(event.url);
    				            return false;
    				        }
    					},
    Thread Starter Reactor89

    (@reactor89)

    Angelo you are awesome! The code works perfectly, and here I thought the code would be far more difficult to implement.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change Event URL target’ is closed to new replies.