Oracle JET in PT 8.55 - CSK_REQUIRE_CFG_JS
by Sasank Vemana
JavaScript
/*
* requireJS Config
* Resources:
* - Jim's PeopleSoft Journal - http://jjmpsj.blogspot.com/2015/02/using-requirejs-to-manage-dependencies.html
* - Delivered PT_CHART_JET HTML Object
*/
var cskWsPath = '/cs/' + getSiteName() + '/oraclejet/js/libs/';
requirejs.config({
//% Path mappings for the logical module names
paths: {
'jquery':cskWsPath+'jquery/jquery-2.1.3.min',
'jqueryui-amd':cskWsPath+'jquery/jqueryui-amd-1.11.4.min',
},
//% Shim configurations for modules that do not expose AMD
shim: {
'jquery': {
exports: ['jQuery', 'JetCSKJQ']
},
'jqueryui': {
deps: ['jquery']
}
}
});