forked from extern/egroupware
Remove some lingering inline js
This commit is contained in:
parent
e3fdbd0c62
commit
e61cc619f1
@ -211,7 +211,6 @@ class importexport_export_ui {
|
||||
$content['filter']['fields'] = importexport_helper_functions::get_filter_fields($_appname, $selected_plugin);
|
||||
if(!$content['filter']['fields'])
|
||||
{
|
||||
$this->js->set_onload("\$j('input[value=\"filter\"]').parent().hide();");
|
||||
$content['no_filter'] = true;
|
||||
}
|
||||
else
|
||||
@ -241,13 +240,7 @@ 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));
|
||||
|
@ -50,11 +50,24 @@ app.classes.importexport = AppJS.extend(
|
||||
// call parent
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
if(this.et2.getWidgetById('export') && !this.et2.getArrayMgr("content").getEntry("definition"))
|
||||
if(this.et2.getWidgetById('export'))
|
||||
{
|
||||
// et2 doesn't understand a disabled button in the normal sense
|
||||
$j(this.et2.getWidgetById('export').getDOMNode()).attr('disabled','disabled');
|
||||
$j(this.et2.getWidgetById('preview').getDOMNode()).attr('disabled','disabled');
|
||||
if(!this.et2.getArrayMgr("content").getEntry("definition"))
|
||||
{
|
||||
// et2 doesn't understand a disabled button in the normal sense
|
||||
$j(this.et2.getWidgetById('export').getDOMNode()).attr('disabled','disabled');
|
||||
$j(this.et2.getWidgetById('preview').getDOMNode()).attr('disabled','disabled');
|
||||
}
|
||||
if(!this.et2.getArrayMgr("content").getEntry("filter"))
|
||||
{
|
||||
$j('input[value="filter"]').parent().hide();
|
||||
}
|
||||
|
||||
// Disable / hide definition filter if not selected
|
||||
if(this.et2.getArrayMgr("content").getEntry("selection") != 'filter')
|
||||
{
|
||||
$j('div.filters').hide();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user