/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/js/header.js

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-30 12:02:31 UTC
  • mfrom: (85.1.28 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130530120231-ttqgqjqw2w8enn7g
Merged Ohlsons changes:
added function to get ssn and name for the registrationspages in the user model.
added the registrationpage for students.
edited the registration page for instructors
edited the css for both the registrationpages
minor fix to registration css

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Global variables */
 
2
var popoutMenu=0;
 
3
var expandedCourses=0;
 
4
 
 
5
/* Functions */
 
6
$(document).ready(function(){
 
7
        $('#expandedCourses').hide();
 
8
        $('#popoutMenu').hide();
 
9
 
 
10
        /* Check courses in expanded menu */
 
11
        $('li[class="expanded"]').click(function(){
 
12
                if($(this).hasClass('checkedCourse')){
 
13
                        $(this).removeClass('checkedCourse');
 
14
                }
 
15
                else{
 
16
                        $(this).addClass("checkedCourse");
 
17
                }
 
18
        });
 
19
 
 
20
/* Expand/Collapse courses in popout menu */
 
21
function expandCourses(){
 
22
        if(expandedCourses==0){
 
23
        $('#expandedCourses').stop(false, true).slideDown(300);
 
24
        expandedCourses=1;
 
25
        }
 
26
        else if(expandedCourses==1){
 
27
                $('#expandedCourses').stop(false, false).slideUp(300);  
 
28
                expandedCourses=0;
 
29
        }
 
30
}
 
31