mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
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;
|
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);
|
||||||
@ -565,6 +568,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