#13292 fixed bug in sound console
This commit is contained in:
parent
8539d1d905
commit
bd10db675c
|
@ -1250,6 +1250,7 @@ function test_sound_button(test_sound, urlSound) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function action_events_sound(mode, settings) {
|
function action_events_sound(mode, settings) {
|
||||||
|
test_sound_button(false, "");
|
||||||
if (mode === true) {
|
if (mode === true) {
|
||||||
// Enable tabs.
|
// Enable tabs.
|
||||||
$("#tabs-sound-modal").tabs("option", "disabled", [0]);
|
$("#tabs-sound-modal").tabs("option", "disabled", [0]);
|
||||||
|
@ -1397,9 +1398,7 @@ function check_event_sound(settings) {
|
||||||
$(".container-button-alert").addClass("fired");
|
$(".container-button-alert").addClass("fired");
|
||||||
|
|
||||||
// Remove audio.
|
// Remove audio.
|
||||||
remove_audio();
|
//remove_audio();
|
||||||
|
|
||||||
// Apend audio.
|
|
||||||
add_audio(settings.urlSound);
|
add_audio(settings.urlSound);
|
||||||
|
|
||||||
// Add elements.
|
// Add elements.
|
||||||
|
@ -1432,10 +1431,10 @@ function check_event_sound(settings) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// -100 delay sound.
|
// -100 delay sound.
|
||||||
setTimeout(
|
//setTimeout(
|
||||||
remove_audio,
|
// remove_audio,
|
||||||
parseInt($("#tabs-sound-modal #time_sound").val()) * 1000 - 100
|
// parseInt($("#tabs-sound-modal #time_sound").val()) * 1000 - 100
|
||||||
);
|
//);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"json"
|
"json"
|
||||||
|
|
Loading…
Reference in New Issue