source: t29-www/shared/js-v6/modules/startup.js @ 357

Last change on this file since 357 was 357, checked in by sven, 11 years ago

t29Host-Webroot-System entwickelt.

Damit können Installationen der technikum29-Website ab nun auch in Unterverzeichnissen
(bislang allerdings nur unterhalb des DocumentRoots) installiert werden, was einem
größere Flexibilität beim lokalen Aufsetzen der Seite liefert

File size: 927 bytes
Line 
1/**
2 * Reihenfolge spielt eine Rolle: Manche Module brauchen andere,
3 * um was sinnvolles machen zu koennen!!
4 *
5 * Insbesondere sind systemkritisch: t29.msg (braucht kein startup) und t29.prefs
6 *
7 *
8 *
9 **/
10 
11if(!t29) window.t29 = {}; // the t29 namespace
12
13t29.startup = {};
14
15t29.startup.modules = [
16        // infrastructure
17        'load',
18
19        // independent #content enrichment
20        'auto_bildbreite',
21        'defaultvalue',
22        'heading_links',
23        'img_license',
24        'lightbox',
25        'log',
26
27        // ganz am anfang
28        'prefs',
29       
30        // needs log, t29msg
31        'interlang',
32
33        // needs prefs
34        'menu',
35        'piwik',
36       
37        // ggf verbaendelt mit menu wg scroll lock
38        'smoothscroll',
39
40        // shall be at end
41        'page',
42];
43
44t29.startup.setup = function(){
45        $.each(t29.startup.modules, function(){
46                if(t29[this] && t29[this].setup)
47                        t29[this].setup();
48                else
49                        log("t29Startup: No setup found for "+this);
50        });
51};
52
53$(t29.startup.setup);
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License