History 2015-09-08 - GAC - Initial version. 2017-11-06 - GAC - Set up to only load jQueryUI Updated to change loading type from early to late ---> if ( !structKeyExists(attributes, "loadingType") ) attributes.loadingType = "early"; // options: late / early if ( !structKeyExists(attributes, "updateExisting") ) attributes.updateExisting = 0; /* PRIMARY - jQueryUI LIBRARIES */ // these are the only js we load in the head by default, because they're called so much by existing code // even code that defers actual execution probably does that with the jQuery document ready function /* START - jQueryUI Resource Updater */ regData = []; regItem = {}; regItem.version = "1.11"; regItem.alias = "_1_11"; regItem.adf = "2.4"; regItem.loadingType = attributes.loadingType; regItem.update = attributes.updateExisting; arrayAppend(regData,regItem); regItem = {}; regItem.version = "1.12"; regItem.alias = ""; // Current Active Alias regItem.adf = "2.1"; regItem.loadingType = attributes.loadingType; regItem.update = attributes.updateExisting; arrayAppend(regData,regItem); for ( i=1; i LTE ArrayLen(regData); i=i+1 ) { resourceProps = [{LoadTagType=2, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#regData[i].version#/js/jquery-ui-#regData[i].version#.js", canMinify=0}]; resourcePropsEarly = []; resourcePropsLate = []; if ( regItem.loadingType EQ "early" ) resourcePropsEarly = resourceProps; else resourcePropsLate = resourceProps; /* jQuery UI Theme Javascript Resources */ application.ADF.scriptsService.registerResource ( "jQueryUI #regData[i].version#", "PRIMARY", resourcePropsEarly, resourcePropsLate, "jQueryUI resources.", "Included in ADF #regData[i].adf# and later.", "jQueryUI#regData[i].alias#" ,0,regData[i].update,0 ); /* jQuery UI Default Theme CSS fallback */ application.ADF.scriptsService.registerResource ( "jQueryUIDefaultTheme #regData[i].version#", "PRIMARY", [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#regData[i].version#/css/ui-lightness/jquery-ui.css", canCombine=0, canMinify=0} ], [], "jQueryUIDefaultTheme resources.", "Included in #regData[i].adf# and later.", "jQueryUIDefaultTheme#regData[i].alias#,jQueryUIstyles#regData[i].alias#" ,0,regData[i].update,0 ); /* jQuery UI Theme CSS example: ui-lightness */ application.ADF.scriptsService.registerResource ( "jQueryUI UI-Lightness #regData[i].version#", "PRIMARY", [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#regData[i].version#/css/ui-lightness/jquery-ui.css", canCombine=0, canMinify=0} ], [], "jQueryUI UI-Lightness Theme resources.", "Included in #regData[i].adf# and later.", "ui-lightness#regData[i].alias#" ,0,regData[i].update,0 ); /* jQuery UI Theme CSS example: Redmond */ application.ADF.scriptsService.registerResource ( "jQueryUI Redmond #regData[i].version#", "PRIMARY", [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#regData[i].version#/css/redmond/jquery-ui.css", canCombine=0, canMinify=0} ], [], "jQueryUI Redmond Theme resources.", "Included in #regData[i].adf# and later.", "redmond#regData[i].alias#" ,0,regData[i].update,0 ); /* jQuery UI Theme CSS example: Smoothness */ application.ADF.scriptsService.registerResource ( "jQueryUI Smoothness #regData[i].version#", "PRIMARY", [ {LoadTagType=1, SourceURL="/ADF/thirdParty/jquery/ui/jquery-ui-#regData[i].version#/css/smoothness/jquery-ui.css", canCombine=0, canMinify=0} ], [], "jQueryUI Smoothness Theme resources.", "Included in #regData[i].adf# and later.", "smoothness#regData[i].alias#" ,0,regData[i].update,0 ); } /* END - jQueryUI Resource Updater */

jQueryUI Resources Registered.