if ( !structKeyExists(attributes, "updateExisting") ) attributes.updateExisting = 0; if ( !structKeyExists(attributes, "silent") ) attributes.silent = 0; if ( !structKeyExists(attributes, "doRegister") ) attributes.doRegister = false; if ( !structKeyExists(attributes, "scriptsPackage") ) attributes.scriptsPackage = "min"; // Options: full or min (min = App Scripts Only) appScript = StructNew(); regScripts = StructNew(); appScriptVersion = ""; if ( attributes.scriptsPackage EQ "full") { // jQuery appScript = StructNew(); appScript.version = "1.12"; appScript.name = "jQuery #appScript.version#"; appScript.category ="PRIMARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/jquery-#appScript.version#.js", canMinify=0} ]; appScript.lateLoadSourceArray = []; appScript.description = "jQuery resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQuery"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; WriteDump(appScript); regScripts["jQuery"] = appScript; // ADFLightbox appScript = StructNew(); appScript.name = "ADFLightbox 1.0"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/extensions/lightbox/1.0/css/lightbox_overrides.css", canCombine=0, canMinify=0} ]; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/extensions/lightbox/1.0/js/framework.js"} ]; appScript.description = "ADFLightbox resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="ADFLightbox"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["ADFLightbox"] = appScript; // jQueryUI appScript = StructNew(); appScript.version = "1.11"; appScript.name = "jQueryUI #appScript.version#"; appScript.category ="PRIMARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#jQueryUIversion#/js/jquery-ui-#appScript.version#.js", canMinify=0} ]; appScript.description = "jQueryUI resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryUI"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryUI"] = appScript; // DateJS appScript = StructNew(); appScript.version = "1.0"; appScript.name = "DateJS #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/js/datejs/#appScript.version#/date.js", canMinify=0} ]; appScript.description = "DateJS resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="DateJS"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["DateJS"] = appScript; // jQueryiCalendar appScript = StructNew(); appScript.version = "1.1"; appScript.name = "jQueryiCalendar #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/icalendar/#appScript.version#/jquery.icalendar.pt.css"} ]; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/icalendar/#appScript.version#/jquery.icalendar.pt.js"} ]; appScript.description = "jQueryiCalendar resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryiCalendar"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryiCalendar"] = appScript; // QTip appScript = StructNew(); appScript.version = "2.1"; appScript.name = "QTip #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/qtip/#appScript.version#/jquery.qtip.min.css"} ]; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/qtip/#appScript.version#/jquery.qtip.min.js"} ]; appScript.description = "QTip resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="QTip"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["QTip"] = appScript; // CFJS appScript = StructNew(); appScript.version = "1.3"; appScript.name = "CFJS #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/cfjs/#appScript.version#/jquery.cfjs.min.js"} ]; appScript.description = "CFJS resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="CFJS"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["CFJS"] = appScript; // jQueryUITimepickerAddon appScript = StructNew(); appScript.version = "1.2"; appScript.name = "jQueryUITimepickerAddon #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/timepicker-addon/#appScript.version#/jquery-ui-timepicker-addon.css"} ]; appScript.lateLoadSourceArray =[ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/ui/timepicker-addon/#appScript.version#/jquery-ui-timepicker-addon.js"}, {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/ui/timepicker-addon/#appScript.version#/jquery-ui-sliderAccess.js"} ]; appScript.description = "jQueryUITimepickerAddon resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryUITimepickerAddon"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryUITimepickerAddon"] = appScript; // jQueryUITimepickerFG appScript = StructNew(); appScript.version = "0.3"; appScript.name = "jQueryUITimepickerFG #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/timepicker-fg/#appScript.version#/jquery.ui.timepicker.css"} ]; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/ui/timepicker-fg/#appScript.version#/jquery.ui.timepicker.js"} ]; appScript.description = "jQueryUITimepickerFG resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryUITimepickerFG"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryUITimepickerFG"] = appScript; // jQueryCookie appScript = StructNew(); appScript.version = "1.2"; appScript.name = "jQueryCookie #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/cookie/jquery.cookie.js"} ]; appScript.description = "jQueryCookie resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryCookie"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryCookie"] = appScript; // jQueryBBQ appScript = StructNew(); appScript.version = "1.3.adf"; appScript.name = "jQueryBBQ #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/bbq/#appScript.version#/jquery.ba-bbq.js"} ]; appScript.description = "jQueryBBQ resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryBBQ"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryBBQ"] = appScript; // jQueryDataTables appScript = StructNew(); appScript.version = "1.9"; appScript.name = "jQueryDataTables #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/js/jquery.dataTables.min.js"} ]; appScript.description = "jQueryDataTables resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryDataTables"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryDataTables"] = appScript; // jQueryDataTablesStyles appScript = StructNew(); appScript.version = "1.9"; appScript.name = "jQueryDataTablesStyles #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/css/demo_page.css"}, {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/css/demo_table_jui.css"}, {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/css/demo_table.css"}, {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/css/jquery.dataTables.css"}, {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/datatables/#appScript.version#/css/jquery.dataTables_themeroller.css"} ]; appScript.lateLoadSourceArray = []; appScript.description = "jQueryDataTablesStyles resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryDataTablesStyles"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryDataTablesStyles"] = appScript; // jQueryImagesLoaded appScript = StructNew(); appScript.version = "3.0"; appScript.name = "jQueryImagesLoaded #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/imagesloaded/#appScript.version#/imagesloaded.pkgd.min.js"} ]; appScript.description = "jQueryImagesLoaded resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryImagesLoaded"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryImagesLoaded"] = appScript; // jQueryCheckboxes appScript = StructNew(); appScript.version = "2.1"; appScript.name = "jQueryCheckboxes #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/checkboxes/jquery.checkboxes-#appScript.version#.min.js"} ]; appScript.description = "jQueryCheckboxes resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQueryCheckboxes"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQueryCheckboxes"] = appScript; // DateFormat appScript = StructNew(); appScript.version = "1.2"; appScript.name = "DateFormat #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/js/dateformat/#appScript.version#/date.format.js"} ]; appScript.description = "DateFormat resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="DateFormat"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["DateFormat"] = appScript; // jQuerySelectboxes appScript = StructNew(); appScript.version = "2.2"; appScript.name = "jQuerySelectboxes #appScript.version#"; appScript.category ="SECONDARY"; appScript.earlyLoadSourceArray = []; appScript.lateLoadSourceArray = [ {LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/selectboxes/#appScript.version#/jquery.selectboxes.min.js"} ]; appScript.description = "jQuerySelectboxes resources."; appScript.installInstructions = "Included in ADF 2.0 and later."; appScript.aliasList="jQuerySelectboxes"; appScript.redistributable=0; appScript.updateExisting=attributes.updateExisting; appScript.silent=attributes.silent; regScripts["jQuerySelectboxes"] = appScript; } // APP SPECIFIC RESOURCES // CalendarCSS appScript = StructNew(); appScript.version = ""; appScript.name = "PT Calendar CSS"; appScript.category = "SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/apps/pt_calendar/style/calendar.css"} ]; appScript.lateLoadSourceArray = []; appScript.description = "PT Calendar CSS resources."; appScript.installInstructions = "Included in PT Calendar 4.1 and later."; appScript.aliasList = "PTCalendarCSS"; appScript.redistributable = 1; appScript.updateExisting = attributes.updateExisting; appScript.silent = attributes.silent; regScripts["PTCalendarCSS"] = appScript; // CalendarAdminCSS appScript = StructNew(); appScript.version = ""; appScript.name = "PT Calendar Admin CSS"; appScript.category = "SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/apps/pt_calendar/style/calendaradmin.css"} ]; appScript.lateLoadSourceArray = []; appScript.description = "PT Calendar Admin CSS resources."; appScript.installInstructions = "Included in PT Calendar 4.1 and later."; appScript.aliasList = "PTCalendarAdminCSS"; appScript.redistributable = 1; appScript.updateExisting = attributes.updateExisting; appScript.silent = attributes.silent; regScripts["PTCalendarAdminCSS"] = appScript; // DateTimeBuilderCSS appScript = StructNew(); appScript.version = ""; appScript.name = "DateTime Builder CSS"; appScript.category = "SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/apps/pt_calendar/style/calendar-datetime-builder.css"} ]; appScript.lateLoadSourceArray = []; appScript.description = "PT Calendar DateTime Builder CSS resources."; appScript.installInstructions = "Included in PT Calendar 4.1 and later."; appScript.aliasList = "DateTimeBuilderCSS"; appScript.redistributable = 1; appScript.updateExisting = attributes.updateExisting; appScript.silent = attributes.silent; regScripts["DateTimeBuilderCSS"] = appScript; // RecurrenceBuilderCSS appScript = StructNew(); appScript.version = ""; appScript.name = "Recurrence Builder CSS"; appScript.category = "SECONDARY"; appScript.earlyLoadSourceArray = [ {LoadTagType=1, SourceURL="/ADF/apps/pt_calendar/style/calendar-recurrence-builder.css"} ]; appScript.lateLoadSourceArray = []; appScript.description = "PT Calendar Recurrence Builder CSS resources."; appScript.installInstructions = "Included in PT Calendar 4.1 and later."; appScript.aliasList = "RecurrenceBuilderCSS"; appScript.redistributable = 1; appScript.updateExisting = attributes.updateExisting; appScript.silent = attributes.silent; regScripts["RecurrenceBuilderCSS"] = appScript; //WriteDump(regScripts); if ( attributes.doRegister ) { for ( key IN regScripts ) { regData = regScripts[key]; application.ADF.scriptsService.registerResource ( name = regData.name, category = regData.category, earlyLoadSourceArray = regData.earlyLoadSourceArray, lateLoadSourceArray = regData.lateLoadSourceArray, description = regData.description, installInstructions = regData.installInstructions, aliasList = regData.aliasList, redistributable = regData.redistributable, updateExisting = regData.updateExisting, silent = regData.silent ); } }