/* * This set of Javascript functions provides the functionality of the side control bar * of the standard skin implementation. Modify the definitions of these functions * to change the behavior of the side bar. Edit modules/skin/stdframe.html to modify * the placement of the sidebar, and edit modules/skin/sidebar.html to modify the * appearance of the sidebar. */ /* * Action taken on clicking the Back icon. */ function sidebarBack() { history.back(); } /* * Action taken on clicking the Home icon. */ function sidebarHome() { if (edu_role == "administrator") { document.forms.edu_form.action = "configureClasses.Login"; doAction(''); } else if (edu_role == "instructor") { document.forms.edu_form.action = "configureTest.Login"; doAction(''); } else if (edu_role == "proctor") { document.forms.edu_form.action = "proctorTools.Login"; doAction(''); } else if (className) { toClassPage(); } } /* * Action taken on clicking the Log Off icon. */ function sidebarLogoff() { if (edu_role == "administrator") { document.forms.edu_form.action = "configureClasses.Login"; doAction('Log off'); } else if (edu_role == "instructor") { document.forms.edu_form.action = "configureTest.Login"; doAction('Log off'); } else if (edu_role == "proctor") { document.forms.edu_form.action = "proctorTools.Login"; doAction('Log off'); } else if (className) { toClassPage(); } } /* * Action taken on clicking the Help icon. */ function sidebarHelp() { getHelp(edu_role); }