server/src/main/webapp/js/main_coweb.js
author ymh <ymh.work@gmail.com>
Mon, 20 Aug 2012 16:07:15 +0200
changeset 22 948283342245
parent 9 2ab67fa1e78d
child 45 37c9a17c3284
permissions -rw-r--r--
Session moderator + test in model

//
// Cooperative web application template.
//
// Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
//

// assumes admin servlet deployed with the application 
var cowebConfig = {
    adminUrl : './admin'
};

require({moduleUrl : 'lib'},
        ['coweb/main','dojo'],
function(coweb, dojo) {
    // do application setup here
    
    dojo.ready(function() {
        // on page load, prepare, join, and update in a session
        var sess = coweb.initSession();
        sess.prepare();
        this.collab = coweb.initCollab({id:'renkan'});
    });
});