/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/bannermenu.js

  • Committer: a11andoh
  • Date: 2013-05-23 08:16:45 UTC
  • mfrom: (88 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: a11andoh@student.his.se-20130523081645-jxltw80q135v14ot
blurp

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* TODO: cHANGE THIS FILE ENTIRELY!!! */
 
1
/* TODO: cHANGE THIS FILE ENTIRELY!!! CHANGE CALLED ID'S AND CLASSES */
2
2
 
 
3
/* TODO: Do I need these? */
3
4
/* Global variables */
4
5
var popoutMenu=0;
5
6
var expandedCourses=0;
6
7
 
7
 
/* TODO: CHANGE CALLED ID'S AND CLASSES*/
8
 
/* Functions */
9
 
$(document).ready(function(){
10
 
        $('#expandedCourses').hide();
11
 
        $('#popoutMenu').hide();
12
 
        $('#passwordChanger').hide();
 
8
/* Functions that run when the page loads */
 
9
$(document).ready(function() {
 
10
        /* Secures that the dropdownmenus are not shown on pageload */
 
11
        $('#dropdownCodeviewerMenu').hide();
 
12
        $('#dropdownUserMenu').show();
13
13
 
14
 
        /* TODO: CHANGE CALLED ID'S AND CLASSES */
15
14
        /* Check courses in expanded menu */
16
 
        $('li[class="expanded"]').click(function(){
17
 
                if($(this).hasClass('checkedCourse')){
18
 
                        $(this).removeClass('checkedCourse');
19
 
                }
20
 
                else{
21
 
                        $(this).addClass("checkedCourse");
22
 
                }
 
15
        $('li.dropdownMenuCourseBlockNonActiveCourse').click(function(){
 
16
                $('li.dropdownMenuCourseBlockActiveCourse').addClass('dropdownMenuCourseBlockNonActiveCourse');
 
17
                $('li.dropdownMenuCourseBlockActiveCourse').removeClass('dropdownMenuCourseBlockActiveCourse');
 
18
 
 
19
                $(this).removeClass('dropdownMenuCourseBlockNonActiveCourse');
 
20
                $(this).addClass("dropdownMenuCourseBlockActiveCourse");
 
21
                /*TA BORT DEN ENA KLASSEN OCH ANVĂ„ND TOGGLE*/
23
22
        });
24
23
 
25
24
        /* TODO: SHOULD OPEN A POPUP VIA AJAX */