Fix filter for only printing visible templates

This commit is contained in:
Nathan Gray 2016-04-21 20:30:10 +00:00
parent 5d5e45e1ad
commit 5e2d782414

View File

@ -984,7 +984,7 @@ var fw_base = (function(){ "use strict"; return Class.extend(
var et2_list = [];
$j('.et2_container',this.activeApp.tab.contDiv).each(function() {
var et2 = etemplate2.getById(this.id);
if(et2 && jQuery(et2.DOMContainer).filter(':visible'))
if(et2 && jQuery(et2.DOMContainer).filter(':visible').length)
{
deferred = deferred.concat(et2.print());
et2_list.push(et2);