Make sure customfield header widgets get finished, even if customfield widget is already done.

Fixes addressbook switching from 'All contacts' to organization and back loses customfield headers
This commit is contained in:
nathangray 2016-07-01 13:05:16 -06:00
parent 3e92b81d0c
commit 1ca3706ae2

View File

@ -3137,6 +3137,11 @@ var et2_nextmatch_customfields = (function(){ "use strict"; return et2_customfie
}, this);
}
// If this is already attached, widget needs to be finished explicitly
if(this.isAttached() && !widget.isAttached())
{
widget.doLoadingFinished();
}
// Check for column filter
if(!jQuery.isEmptyObject(this.options.fields) && (
this.options.fields[field_name] == false || typeof this.options.fields[field_name] == 'undefined'))