Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/**
2
Custom module for you to write your own javascript functions
3
**/
4
var Custom = function () {
5
 
6
    // private functions & variables
7
 
8
    var myFunc = function(text) {
9
        alert(text);
10
    }
11
 
12
    // public functions
13
    return {
14
 
15
        //main function
16
        init: function () {
17
            //initialize here something.            
18
        },
19
 
20
        //some helper function
21
        doSomeStuff: function () {
22
            myFunc();
23
        }
24
 
25
    };
26
 
27
}();
28
 
29
jQuery(document).ready(function() {    
30
   Custom.init();
31
});
32
 
33
/***
34
Usage
35
***/
36
//Custom.doSomeStuff();