1/*
2var newscript = document.createElement('script');
3newscript.type = 'text/javascript';
4newscript.async = false;
5newscript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';
6(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(newscript);
7*/
8
9$(document).ready(function () {
10
11 var type = typeof (AthCmsType);
12 var notLoaded = typeof (AthCmsType) == 'undefined';
13
14 if (AthAdmin.isAdmin() && notLoaded) {
15
16
17 if (!jQuery().tinymce) {
18 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.tinymce.js', async: false, dataType: 'script', cache: true });
19 };
20 if (!jQuery().validate) {
21 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.validate.js', async: false, dataType: 'script', cache: true });
22 };
23 if (!jQuery().ajaxSubmit) {
24 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.form.js', async: false, dataType: 'script', cache: true });
25 };
26 if (!jQuery().blockUI) {
27 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.blockUI.js', async: false, dataType: 'script', cache: true });
28 };
29 if (!jQuery().contextMenu) {
30 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/jquery.contextMenu.js', async: false, dataType: 'script', cache: true });
31 };
32 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsType.js', async: false, dataType: 'script', cache: true });
33 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsEditors.js', async: false, dataType: 'script', cache: true });
34 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsImage.js', async: false, dataType: 'script', cache: true });
35 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsFile.js', async: false, dataType: 'script', cache: true });
36 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsImageType.js', async: false, dataType: 'script', cache: true });
37 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsFileType.js', async: false, dataType: 'script', cache: true });
38 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsEntry.js', async: false, dataType: 'script', cache: true });
39 $.ajax({ type: "GET", url: AthPaths.getRootUrl() + 'athCms/js/athCmsElement.js', async: false, dataType: 'script', cache: true });
40
...
</html>