/* this is content of the language specific texts js e.g. ocms.ex_txt_de.js */ let $ct = { mdl: 'Examplemodule' }, $ccol = { test: new fields_definition([ { name: 'booking_guid', label: 'ID', type: 'hidden' }, { name: 'Res', label: 'Resourcen', type: 'select', url: [], required: true, value: '' } ]) }; /* this is content of the main js e.g. ocms.ex.js */ /* both are to be merged and minified and put to target location */ let $example = { init2: function (type, options) { type = type || 'cal'; options = options || {}; $ocms.getScript([ //{ script: 'web/jstree.min.js', css: 'web/jstree.min.css', condition: typeof $.fn.jstree !== 'function' } //, { script: 'web/jquery.qtip.min.js', css: 'web/jquery.qtip.min.css', condition: typeof $.fn.qtip !== 'function' } //, { script: 'web/typeahead.min.js', css: '', condition: typeof $.fn.typeahead !== 'function' } //, { script: 'web/fullcalendar.min.js', module: 'FullCalendar', css: 'web/fullcalendar.min.css', condition: typeof FullCalendar !== 'object' } ], function () { //FullCalendar = $vm.FullCalendar; $example.init3(type, options); }); }, init3: async function (type, options) { let cf = $('#contentframe').empty(), cf2 = $$.dc('cfrm hd').appendTo(cf), frm = $$.dc('vcal init_frm', cf); let tbar = $('#topbar').ocmsmenu([]); //{ lbl: 'home', fnc: $example.init3 } $('#activemodule').text($ct.mdl); let calfrm = $$.dc('calfrm', frm); let pa = [new Promise((resolve, reject) => { frm.IN(function () { }); }), new Promise((resolve, reject) => { //$example.lst3m() })]; await Promise.all(pa); } } let $$example = { init2: $example.init2, auth: {} }; export default $$example;