bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
83.2.14
by elof.bigestans at gmail
* Started work on the viewStudents functionality... So far, displaying users works and it outputs correct and standardized html. |
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 |
});
|