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

  • Committer: a11andoh
  • Date: 2013-05-28 09:50:28 UTC
  • mfrom: (109 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 115.
  • Revision ID: a11andoh@student.his.se-20130528095028-f2pybnwvms6yygsv
blurp

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$(document).ready(function() {
 
2
 
 
3
        $("#addStudentButton").click(function(e) {
 
4
                e.stopPropagation();
 
5
                e.preventDefault();
 
6
                $("#popup").load(
 
7
                        "ajax/popup/addStudents",
 
8
                        function() {
 
9
                                $("#popup").fadeIn(300).click(function(e) {e.stopPropagation();});
 
10
                                $("#popup .cancelButton").click(function(e) {
 
11
                                        e.stopPropagation();
 
12
                                        e.preventDefault();
 
13
                                        $("#popup").fadeOut(300, function() { $(this).remove(); });
 
14
                                });
 
15
                        }
 
16
                );
 
17
        });
 
18
 
 
19
        $("html").click(function(e) {
 
20
                e.stopPropagation();
 
21
                e.preventDefault();
 
22
                $("#popup").fadeOut(300, function() { $(this).html("")});
 
23
        });
 
24
 
 
25
        $("#viewStudents table tr:even").addClass("even");
 
26
        $("#viewStudents table tr:odd").addClass("odd");
 
27
});
 
 
b'\\ No newline at end of file'