Files
HotLunches/parent-students.js.php
T
2026-10-19 15:22:52 -07:00

26 lines
743 B
PHP

$(document).on('click', '.view-student-orders', function(e) {
e.preventDefault();
var rnum = $(this).attr('rnum');
if ($("#student-orders-"+rnum).is(":visible")) {
$("#student-orders-"+rnum).hide();
}
else {
$("#student-orders-"+rnum).show();
}
});
$(document).on('click', '.order-button', function(e) {
e.preventDefault();
var snum = $(this).attr('snum');
var stnum = $(this).attr('stnum');
var onum = $(this).attr('onum');
window.location = "/?action=orders&v=20260920&naction=edit&schedule_num="+snum+"&student_num="+stnum+
"&entered_order_num="+onum;
});