cc-4419: Added quick hack for now -- actual fix

This commit is contained in:
Rudi Grinberg 2012-09-17 11:18:18 -04:00
parent d4443da626
commit fab7042ce6
1 changed files with 2 additions and 3 deletions

View File

@ -51,8 +51,6 @@ var AIRTIME = (function(AIRTIME) {
$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){
@ -363,6 +361,8 @@ var AIRTIME = (function(AIRTIME) {
var tableHeight = $libContent.height() - 130;
function setColumnFilter(oTable){
// TODO : remove this dirty hack once js is refactored
if (!oTable.fnSettings()) { return ; }
var aoCols = oTable.fnSettings().aoColumns;
var colsForAdvancedSearch = new Array();
var advanceSearchDiv = $("div#advanced_search");
@ -647,7 +647,6 @@ var AIRTIME = (function(AIRTIME) {
}
});
setColumnFilter(oTable);
oTable.fnSetFilteringDelay(350);
$libContent.find(".dataTables_scrolling").css("max-height", tableHeight);