';
$output .= '
';
$output .= __('Discovered alerts');
$output .= '
';
@@ -259,7 +266,7 @@ $output = '
';
$output .= __('Congrats! there’s nothing to show');
$output .= '';
$output .= '
';
- $output .= '
';
+ $output .= '
';
$output .= html_print_input_hidden(
'ajax_file_sound_console',
ui_get_full_url('ajax.php', false, false, false),
@@ -284,7 +291,7 @@ $output = '
';
false,
'',
[
- 'icon' => 'cog',
+ 'icon' => 'play',
'class' => 'mrgn_lft_20px',
],
true
@@ -350,9 +357,9 @@ function action_events_sound(mode) {
// Change mode.
$("#hidden-mode_alert").val(1);
// Change img button.
- $("#button-start-search")
- .removeClass("play")
- .addClass("stop");
+ $("#button-start-search").children("div").removeClass("play")
+ $("#button-start-search").children("div").addClass("stop");
+
// Change value button.
$("#button-start-search").val("Stop");
$("#button-start-search > span").text("Stop");
@@ -366,9 +373,8 @@ function action_events_sound(mode) {
// Change mode.
$("#hidden-mode_alert").val(0);
// Change img button.
- $("#button-start-search")
- .removeClass("stop")
- .addClass("play");
+ $("#button-start-search").children("div").removeClass("stop")
+ $("#button-start-search").children("div").addClass("play")
// Change value button.
$("#button-start-search").val("Start");
$("#button-start-search > span").text("Start");
@@ -405,6 +411,7 @@ function add_audio(urlSound) {
function remove_audio() {
$(".actions-sound-modal audio").remove();
+ //buttonBlink();
}
function listen_event_sound() {
@@ -435,7 +442,6 @@ function check_event_sound() {
$("#tabs-sound-modal .empty-discovered-alerts").addClass(
"invisible_important"
);
-
// Change img button.
$("#button-no-alerts")
.removeClass("alerts")
@@ -446,10 +452,11 @@ function check_event_sound() {
// Background button.
$(".container-button-alert").addClass("fired");
-
+
// Remove audio.
remove_audio();
var urlSound = '../../include/sounds/'+$('#sound_id :selected').val();
+ console.log(urlSound)
// Apend audio.
add_audio(urlSound);
@@ -505,7 +512,7 @@ $(document).ready(function(){
sound = true;
}
var urlSound = '../../include/sounds/'+$('#sound_id :selected').val();
-
+ urlSound
test_sound_button(sound, urlSound);
});
@@ -516,7 +523,18 @@ $(document).ready(function(){
if (mode == 0) {
action = true;
}
-
+ if ($("#button-start-search").hasClass("play")){
+ $("#modal-sound").css({
+ height: "500px"
+ });
+ $("#modal-sound").parent().css({
+ height: "800px"
+ });
+ } else {
+ $("#modal-sound").css({
+ height: "450px"
+ });
+ }
action_events_sound(action);
});
diff --git a/pandora_console/operation/menu.php b/pandora_console/operation/menu.php
index 3641a79f80..123a7e63e8 100644
--- a/pandora_console/operation/menu.php
+++ b/pandora_console/operation/menu.php
@@ -563,6 +563,12 @@ if ($access_console_node === true) {
$sub['operation/events/events_rss.php?user='.$config['id_user'].'&hashup='.$hashup.'&fb64='.$fb64]['type'] = 'direct';
}
+ if (is_metaconsole() === true) {
+ $urlSound = '../../include/sounds/';
+ } else {
+ $urlSound = 'include/sounds/';
+ }
+
// Acoustic console.
$data_sound = base64_encode(
json_encode(
@@ -574,7 +580,7 @@ if ($access_console_node === true) {
'silenceAlarm' => __('Silence alarm'),
'url' => ui_get_full_url('ajax.php'),
'page' => 'include/ajax/events',
- 'urlSound' => 'include/sounds/',
+ 'urlSound' => $urlSound,
]
)
);