#12691 fixed autosubmit in filters

This commit is contained in:
Daniel Cebrian 2024-03-15 10:02:21 +01:00
parent 2192acdac2
commit 6a1eeb467f
4 changed files with 10 additions and 10 deletions

View File

@ -318,7 +318,7 @@ $filterTable->data[0][0] = html_print_label_input_block(
$return_all_group, $return_all_group,
'ag_group', 'ag_group',
$ag_group, $ag_group,
'this.form.submit();', '',
'', '',
0, 0,
true, true,
@ -337,7 +337,7 @@ $filterTable->data[0][1] = html_print_label_input_block(
$recursion, $recursion,
true, true,
false, false,
'this.form.submit()' ''
).'</div>' ).'</div>'
); );
@ -347,7 +347,7 @@ $filterTable->data[0][2] = html_print_label_input_block(
$showAgentFields, $showAgentFields,
'disabled', 'disabled',
$disabled, $disabled,
'this.form.submit()', '',
'', '',
0, 0,
true, true,
@ -365,7 +365,7 @@ $filterTable->data[0][3] = html_print_label_input_block(
$fields, $fields,
'os', 'os',
$os, $os,
'this.form.submit()', '',
'All', 'All',
0, 0,
true, true,

View File

@ -366,12 +366,12 @@ $filterTable->data[0][] = html_print_label_input_block(
$filterTable->data[0][] = html_print_label_input_block( $filterTable->data[0][] = html_print_label_input_block(
__('Group'), __('Group'),
html_print_select_groups(false, 'AR', $return_all_group, 'ag_group', $ag_group, 'this.form.submit();', '', 0, true, false, true, '', false) html_print_select_groups(false, 'AR', $return_all_group, 'ag_group', $ag_group, '', '', 0, true, false, true, '', false)
); );
$filterTable->data[0][] = html_print_label_input_block( $filterTable->data[0][] = html_print_label_input_block(
__('Group Recursion'), __('Group Recursion'),
html_print_checkbox_switch('recursion', 1, $recursion, true, false, 'this.form.submit()') html_print_checkbox_switch('recursion', 1, $recursion, true, false, '')
); );
if (is_metaconsole() === false) { if (is_metaconsole() === false) {

View File

@ -780,7 +780,7 @@ class AgentsAlerts extends HTML
'nothing' => false, 'nothing' => false,
'selected' => $this->groupId, 'selected' => $this->groupId,
'return' => true, 'return' => true,
'script' => 'this.form.submit()', 'script' => '',
'size' => '100%', 'size' => '100%',
], ],
]; ];

View File

@ -333,7 +333,7 @@ $table->data['group'][0] = html_print_label_input_block(
true, true,
'group_id', 'group_id',
$group_id, $group_id,
'this.form.submit()', '',
'', '',
'', '',
true, true,
@ -361,7 +361,7 @@ $table->data['group'][1] = html_print_label_input_block(
$fields, $fields,
'status', 'status',
$status, $status,
'this.form.submit()', '',
__('All'), __('All'),
AGENT_STATUS_ALL, AGENT_STATUS_ALL,
true, true,
@ -436,7 +436,7 @@ $table->data[2][1] = html_print_label_input_block(
$fields, $fields,
'policies', 'policies',
$policies, $policies,
'this.form.submit()', '',
__('All'), __('All'),
0, 0,
true, true,