Rev 1321 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1321 | Rev 1349 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | $files = array(); |
29 | $files = array(); |
30 | 30 | ||
31 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_JS', true); |
31 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_JS', true); |
32 | 32 | ||
33 | $files[] = process_file(__DIR__ . '/vendor/components/jquery/jquery.js'); |
33 | $files[] = process_file(__DIR__ . '/vendor/components/jquery/jquery.js'); |
34 | if (isInternetExplorer()) { |
- | |
35 | // There are several JS IE11 incompatibilities in Bootstrap 5: |
- | |
36 | // - "const getUID = prefix => {" which is another syntax of "getUID: function getUID(prefix) {" |
- | |
37 | // - "Template strings" `...` |
- | |
38 | // - let {.....} = .... |
- | |
39 | // (more?) |
- | |
40 | // We don't include bootstrap.js for Internet Explorer. |
- | |
41 | // Therefore, the page is still displayed, although without fancy JS stuff of bootstrap |
- | |
42 | // Use bootstrap 4.5.0 JS as fallback (Note that the CSS is still 5.x!) |
- | |
43 | $files[] = process_file(__DIR__ . '/vendor/bootstrap4.min.js'); |
- | |
44 | $files[] = process_file(__DIR__ . '/vendor/ie11CustomProperties.min.js'); |
- | |
45 | } else { |
- | |
46 | $files[] = process_file(__DIR__ . '/vendor/twbs/bootstrap/dist/js/bootstrap.js'); |
34 | $files[] = process_file(__DIR__ . '/vendor/twbs/bootstrap/dist/js/bootstrap.js'); |
47 | } |
- | |
48 | $files[] = process_file(__DIR__ . '/vendor/vakata/jstree/dist/jstree.js'); |
35 | $files[] = process_file(__DIR__ . '/vendor/vakata/jstree/dist/jstree.js'); |
49 | $files[] = process_file(__DIR__ . '/vendor/tinymce/tinymce/tinymce.js'); |
36 | $files[] = process_file(__DIR__ . '/vendor/tinymce/tinymce/tinymce.js'); |
50 | $files[] = process_file(__DIR__ . '/vendor/components/jqueryui/jquery-ui.js'); |
37 | $files[] = process_file(__DIR__ . '/vendor/components/jqueryui/jquery-ui.js'); |
51 | $files[] = process_file(__DIR__ . '/vendor/gedmarc/layout/dist/jquery.layout_and_plugins.js'); |
38 | $files[] = process_file(__DIR__ . '/vendor/gedmarc/layout/dist/jquery.layout_and_plugins.js'); |
52 | $files[] = process_file(__DIR__ . '/vendor/spamspan/spamspan/spamspan.js'); |
39 | $files[] = process_file(__DIR__ . '/vendor/spamspan/spamspan/spamspan.js'); |
53 | $files[] = process_file(__DIR__ . '/vendor/emn178/js-sha3/src/sha3.js'); |
40 | $files[] = process_file(__DIR__ . '/vendor/emn178/js-sha3/src/sha3.js'); |
54 | if (!isInternetExplorer()) { |
- | |
55 | // Non IE gets Toast instead of alert() for some message types |
- | |
56 | // (BS5 Utils is not compatible with Internet Explorer) |
- | |
57 | $files[] = process_file(__DIR__ . '/vendor/script47/bs5-utils/dist/js/Bs5Utils.js'); |
41 | $files[] = process_file(__DIR__ . '/vendor/script47/bs5-utils/dist/js/Bs5Utils.js'); |
58 | } |
- | |
59 | 42 | ||
60 | # --- |
43 | # --- |
61 | 44 | ||
62 | $files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::getDefaultLang()).';'; |
45 | $files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::getDefaultLang()).';'; |
63 | 46 |