//for closure compiler to ensure it gets exported window['loadApp'] = loadApp; var router = window['router']; function loadApp() { initializeRoutes(); router.reload(); //login and logout $('form.form-signin').submit(login); //$('#logout').click(logout); $('table.editable').editableTableWidget(); $('table.editable td').on('change', function(evt, newValue) { // do something with the new cell value /* if (....) { return false; // reject change } */ }); loadData(); } function login(e) { e.preventDefault(); router('/sd'); return false; } function loadData() { } function addCompany(company) { }