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:
commit
4ac9316391
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue