Lines 364-377
function showColumn(num){
Link Here
|
364 |
} |
364 |
} |
365 |
|
365 |
|
366 |
function showAllColumns(){ |
366 |
function showAllColumns(){ |
367 |
$("#selections").checkCheckboxes(); |
367 |
$("#selections").find("input:checkbox").each(function () { |
|
|
368 |
$(this).prop("checked", true); |
369 |
}); |
368 |
$("#selections span").addClass("selected"); |
370 |
$("#selections span").addClass("selected"); |
369 |
$("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show(); |
371 |
$("#plan td:nth-child(2),#plan tr th:nth-child(2)").nextAll().show(); |
370 |
$("#hideall").prop("checked", false).parent().removeClass("selected"); |
372 |
$("#hideall").prop("checked", false).parent().removeClass("selected"); |
371 |
} |
373 |
} |
372 |
function hideAllColumns(){ |
374 |
function hideAllColumns(){ |
373 |
var allCols = $("#plan th").length; |
375 |
var allCols = $("#plan th").length; |
374 |
$("#selections").unCheckCheckboxes(); |
376 |
$("#selections").find("input:checkbox").each(function () { |
|
|
377 |
$(this).prop("checked", false); |
378 |
}); |
375 |
$("#selections span").removeClass("selected"); |
379 |
$("#selections span").removeClass("selected"); |
376 |
$("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns |
380 |
$("#plan td:nth-child(2),#plan th:nth-child(2)").nextUntil("th:nth-child("+(allCols-1)+"),td:nth-child("+(allCols-1)+")").hide(); // hide all but the last two columns |
377 |
$("#hideall").prop("checked", true).parent().addClass("selected"); |
381 |
$("#hideall").prop("checked", true).parent().addClass("selected"); |
378 |
- |
|
|