/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: elof.bigestans at gmail
  • Date: 2013-05-27 14:08:19 UTC
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: elof.bigestans@gmail.com-20130527140819-p6j84f9l71zxofyp
* Started work on the viewStudents functionality... So far, displaying users works and it outputs correct and standardized html. 
* Still plenty to do though.

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'