24 lines
679 B
JavaScript
24 lines
679 B
JavaScript
// currently not in use because there are no tabs
|
|
// on the schedule page
|
|
$(function() {
|
|
$("table.schedule-table tr.master").click(function(e) {
|
|
var detailId = $(this).attr("detail");
|
|
var detailDiv = $("div[master="+detailId+"]");
|
|
$(this).toggleClass("master-selected");
|
|
|
|
if($(this).hasClass("master-selected"))
|
|
detailDiv.slideDown();
|
|
else
|
|
detailDiv.slideUp();
|
|
});
|
|
|
|
$("select.tabs").change(function(e) {
|
|
if($(this).val() === "")
|
|
return;
|
|
|
|
var tabid = $("option:contains("+$(this).val()+")", this).attr("tabid");
|
|
|
|
$("div.tab-content").hide();
|
|
$("div.tab-content[tabid="+tabid+"]").show();
|
|
}).change();
|
|
}); |