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