Merge branch 'ent-12079-no-se-aplican-los-filtros-por-defecto-al-hacer-clic-en-el-numero-de-alertas' into 'develop'

Ent 12079 no se aplican los filtros por defecto al hacer clic en el numero de alertas

See merge request artica/pandorafms!6475
This commit is contained in:
Rafael Ameijeiras 2023-11-27 14:51:02 +00:00
commit 4ac9316391
1 changed files with 7 additions and 0 deletions

View File

@ -523,6 +523,9 @@ if ($agent_view_page === true) {
echo $html_content;
}
// Filter control.
echo '<input type="hidden" id="filter_applied" value="0" />';
// Strict user hidden.
echo '<div id="strict_hidden" class="invisible">';
html_print_input_text('strict_user_hidden', $strict_user);
@ -565,6 +568,10 @@ function alerts_table_controls() {
}
$(document).ready ( function () {
if ($('#filter_applied').val() == 0){
$('#button-form_alerts_status_datatable_search_bt').trigger('click');
$('#filter_applied').val(1);
}
alerts_table_controls();
$('#button-alert_validate').on('click', function () {
validateAlerts();