/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: elof.bigestans at gmail
  • Date: 2013-05-24 10:00:47 UTC
  • mto: This revision was merged to the branch mainline in revision 95.
  • Revision ID: elof.bigestans@gmail.com-20130524100047-bqgk67s2g9o3l85x
Solved some bugs in ManageCourses and related files (CSS, JS, View, Controller)

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