diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index fb25f8f08..ed3bd13c3 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -49,7 +49,10 @@ var AIRTIME = (function(AIRTIME) { var cItem, selected, $trs; - + + + // TODO : hack, get rid of this crap library + if (!$libTable) { return ; } // Get visible items and check if any chosenItems are visible $trs = $libTable.find("tbody input:checkbox").parents("tr"); $trs.each(function(i){