/*------------------------------------------------------------------------ - HTML Table Filter Generator - Popup filters feature v1.2 - By Max Guglielmi (tablefilter.free.fr) - Licensed under the MIT License -------------------------------------------------------------------------*/ TF.prototype.SetPopupFilterIcons = function() /*==================================================== - generates popup filters div =====================================================*/ { if(!this.popUpFilters) return; this.isExternalFlt = true; //external filters behaviour is enabled var f = this.fObj; this.popUpImgFlt = f.popup_filters_image!=undefined //filter icon path ? f.popup_filters_image : this.themesPath+'icn_filter.gif'; this.popUpImgFltActive = f.popup_filters_image_active!=undefined //active filter icon path ? f.popup_filters_image_active : this.themesPath+'icn_filterActive.gif'; this.popUpImgFltHtml = f.popup_filters_image_html!=undefined ? f.popup_filters_image_html : 'Column filter'; this.popUpDivCssClass = f.popup_div_css_class!=undefined //defines css class for popup div containing filter ? f.popup_div_css_class : 'popUpFilter'; this.onBeforePopUpOpen = tf_IsFn(f.on_before_popup_filter_open) //callback function before popup filtes is opened ? f.on_before_popup_filter_open : null; this.onAfterPopUpOpen = tf_IsFn(f.on_after_popup_filter_open) //callback function after popup filtes is opened ? f.on_after_popup_filter_open : null; this.onBeforePopUpClose = tf_IsFn(f.on_before_popup_filter_close) //callback function before popup filtes is closed ? f.on_before_popup_filter_close : null; this.onAfterPopUpClose = tf_IsFn(f.on_after_popup_filter_close) //callback function after popup filtes is closed ? f.on_after_popup_filter_close : null; this.externalFltTgtIds = []; this.popUpFltSpans = []; //stores filters spans this.popUpFltImgs = []; //stores filters icons this.popUpFltElms = !this.popUpFltElmCache ? [] : this.popUpFltElmCache; //stores filters containers this.popUpFltAdjustToContainer = true; var o = this; for(var i=0; i