From bd10db675c143b4fc93e8f1aa5cada149e518fbb Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 8 Apr 2024 16:03:28 +0200 Subject: [PATCH] #13292 fixed bug in sound console --- .../include/javascript/pandora_events.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index bb10dd3eb8..0320238673 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -1250,6 +1250,7 @@ function test_sound_button(test_sound, urlSound) { } function action_events_sound(mode, settings) { + test_sound_button(false, ""); if (mode === true) { // Enable tabs. $("#tabs-sound-modal").tabs("option", "disabled", [0]); @@ -1397,9 +1398,7 @@ function check_event_sound(settings) { $(".container-button-alert").addClass("fired"); // Remove audio. - remove_audio(); - - // Apend audio. + //remove_audio(); add_audio(settings.urlSound); // Add elements. @@ -1432,10 +1431,10 @@ function check_event_sound(settings) { }); // -100 delay sound. - setTimeout( - remove_audio, - parseInt($("#tabs-sound-modal #time_sound").val()) * 1000 - 100 - ); + //setTimeout( + // remove_audio, + // parseInt($("#tabs-sound-modal #time_sound").val()) * 1000 - 100 + //); } }, "json"