From f6a8fdf085ba0f8ec0504b25d2ab5dc841da2ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Wed, 23 Feb 2022 18:04:23 +0100 Subject: [PATCH] Fixes with scroll in agents and modules --- pandora_console/mobile/operation/agent.php | 47 ++++++++---- pandora_console/mobile/operation/agents.php | 73 +++++++++++------- pandora_console/mobile/operation/modules.php | 80 +++++++++++--------- 3 files changed, 124 insertions(+), 76 deletions(-) diff --git a/pandora_console/mobile/operation/agent.php b/pandora_console/mobile/operation/agent.php index 35b2155d07..84e45f3164 100644 --- a/pandora_console/mobile/operation/agent.php +++ b/pandora_console/mobile/operation/agent.php @@ -1,15 +1,33 @@ id."'; @@ -256,10 +274,9 @@ class Agent SECONDS_1DAY, '', true, - false, true, - 1, - '' + 500, + 1 ); $html .= ''; $html .= ''; diff --git a/pandora_console/mobile/operation/agents.php b/pandora_console/mobile/operation/agents.php index f76c17dab8..1a6b0061e2 100644 --- a/pandora_console/mobile/operation/agents.php +++ b/pandora_console/mobile/operation/agents.php @@ -1,15 +1,33 @@ getListAgents($page, true); - if (!empty($listAgents['agents'])) { + if (empty($listAgents['agents']) === false) { $end = 0; $agents = []; @@ -96,7 +114,7 @@ class Agents $system = System::getInstance(); $user = User::getInstance(); - // Default + // Default. $filters = [ 'free_search' => '', 'status' => -1, @@ -104,7 +122,7 @@ class Agents ]; $serialized_filters = (string) $system->getRequest('agents_filter'); - if (!empty($serialized_filters)) { + if (empty($serialized_filters) === true) { $filters_unsafe = json_decode(base64_decode($serialized_filters, true), true); if ($filters_unsafe) { $filters = $system->safeInput($filters_unsafe); @@ -144,8 +162,8 @@ class Agents $filters['group'] = $this->group; } - if (!empty($filters)) { - // Store the filter + if (empty($filters) === false) { + // Store the filter. $this->serializedFilters = base64_encode(json_encode($system->safeOutput($filters))); } } @@ -260,7 +278,7 @@ class Agents $search_sql = ''; - if (!empty($this->free_search)) { + if (empty($this->free_search) === false) { $search_sql = " AND ( alias LIKE '%".$this->free_search."%' OR nombre LIKE '%".$this->free_search."%' @@ -461,15 +479,13 @@ class Agents "