mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Better check if a table contains data before using the tablesorter
This commit is contained in:
@@ -69,9 +69,9 @@ if($jqueryV1 && $jqueryCurrent)
|
|||||||
<script language="Javascript" type="text/javascript">
|
<script language="Javascript" type="text/javascript">
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
//
|
// Checks if the table contains data (rows)
|
||||||
if(!$('#<?php echo $tableid; ?>').find('tbody:empty').length
|
if ($('#<?php echo $tableid; ?>').find('tbody:empty').length > 0
|
||||||
&& !$('#<?php echo $tableid; ?>').find('tr:empty').length)
|
&& $('#<?php echo $tableid; ?>').find('tr:empty').length > 0)
|
||||||
{
|
{
|
||||||
$("#<?php echo $tableid; ?>").tablesorter(
|
$("#<?php echo $tableid; ?>").tablesorter(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user