From 88bd4b1bb025915aa76b44b25f8bf11f6b072151 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Mon, 1 Apr 2024 12:58:15 +0200 Subject: [PATCH] 13226-Close select2 on select in Alerts->Templates step 2 --- pandora_console/godmode/alerts/configure_alert_template.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php index 7365339191..5bd57522fd 100644 --- a/pandora_console/godmode/alerts/configure_alert_template.php +++ b/pandora_console/godmode/alerts/configure_alert_template.php @@ -1821,5 +1821,11 @@ if ($step == 2) { } ?> }) + +$(document).ready(function () { + $("#default_action").select2({ + closeOnSelect: true + }); +}); /* ]]> */