diff -r 8e67c9f6da51 -r 2ab67fa1e78d server/src/main/webapp/js/main_coweb.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/main/webapp/js/main_coweb.js Thu Aug 16 14:14:09 2012 +0200 @@ -0,0 +1,22 @@ +// +// 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(); + }); +});