mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
#12079 Apply the filter automatic
This commit is contained in:
parent
963664c1d8
commit
98bdee7037
@ -509,6 +509,9 @@ if ($agent_view_page === true) {
|
|||||||
echo $html_content;
|
echo $html_content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter control.
|
||||||
|
echo '<input type="hidden" id="filter_applied" value="0" />';
|
||||||
|
|
||||||
// Strict user hidden.
|
// Strict user hidden.
|
||||||
echo '<div id="strict_hidden" class="invisible">';
|
echo '<div id="strict_hidden" class="invisible">';
|
||||||
html_print_input_text('strict_user_hidden', $strict_user);
|
html_print_input_text('strict_user_hidden', $strict_user);
|
||||||
@ -551,6 +554,10 @@ function alerts_table_controls() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready ( function () {
|
$(document).ready ( function () {
|
||||||
|
if ($('#filter_applied').val() == 0){
|
||||||
|
$('#button-form_alerts_status_datatable_search_bt').trigger('click');
|
||||||
|
$('#filter_applied').val(1);
|
||||||
|
}
|
||||||
alerts_table_controls();
|
alerts_table_controls();
|
||||||
$('#button-alert_validate').on('click', function () {
|
$('#button-alert_validate').on('click', function () {
|
||||||
validateAlerts();
|
validateAlerts();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user