Fix hidden filters when preference is for filter

This commit is contained in:
Nathan Gray 2013-01-23 19:44:15 +00:00
parent 6dde257d66
commit 117ca80a70

View File

@ -233,13 +233,6 @@ class importexport_export_ui {
");
}
// Disable / hide definition filter if not selected
if($content['selection'] !== 'filter')
{
$this->js->set_onload("
\$j('div.filters').hide();
");
}
$preserv['old_definition'] = $content['definition'];
// If not set by plugin, pre-set selection to preference, or 'search'
@ -254,6 +247,14 @@ class importexport_export_ui {
{
$content['selection'] = 'search';
}
// Disable / hide definition filter if not selected
if($content['selection'] != 'filter')
{
$this->js->set_onload("
\$j('div.filters').hide();
");
}
unset ($plugin_object);
$apps = importexport_helper_functions::get_apps('export');
//error_log(__METHOD__.__LINE__.array2string($apps));