server/src/main/webapp/js/main_coweb.js
author ymh <ymh.work@gmail.com>
Tue, 11 Dec 2012 00:01:41 +0100
changeset 46 7e132e2a48ca
parent 45 37c9a17c3284
permissions -rw-r--r--
add most of the model and repositories
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
//
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
// Cooperative web application template.
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
//
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
// Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
//
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
// assumes admin servlet deployed with the application 
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
var cowebConfig = {
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    adminUrl : './admin'
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
};
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    12
//require(['corenkan']);
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    13
9
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
require({moduleUrl : 'lib'},
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    15
        ['coweb/main','dojo', 'corenkan'],
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    16
function(coweb, dojo, corenkan) {
9
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    // do application setup here
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    19
	dojo.ready(function() {
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    20
        //this.collab = corenkan.app.collab;
9
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    });
45
37c9a17c3284 - add Spring
ymh <ymh.work@gmail.com>
parents: 22
diff changeset
    22
    
9
2ab67fa1e78d add first server code version
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
});
22
948283342245 Session moderator + test in model
ymh <ymh.work@gmail.com>
parents: 9
diff changeset
    24