request.element.isStatic = 0; appConfig = application.ptCalendar.getAppConfig(); // Set the UI theme from the Configuration Element UItheme = application.ptCalendar.getUItheme(); addNewEventLink = ""; if( structKeyExists(appConfig, "new_event_url") and LEN(TRIM(appConfig['new_event_url'])) ) addNewEventLink = appConfig['new_event_url']; // Convert CSExtURL to page url addNewEventLink = Application.ADF.csData.parseCSURL(str=addNewEventLink,useLogging=true); // Set the text for the button to Add New. if ( StructKeyExists(attributes,"buttonText") AND LEN(TRIM(attributes.buttonText)) ) addButtonTitle = attributes.buttonText; else addButtonTitle = "Event Request Form"; // load jQuery headers application.ptCalendar.scripts.loadJQuery(noConflict=1); // load header for jQuery UI application.ptCalendar.scripts.loadJQueryUI(themeName=UItheme); application.ADF.scripts.addFooterJS(addNewEventLinkFooterJS,"TERTIARY");