2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
* operation/events/sound_events.php, godmode/setup/setup.php: fixed the audio, now it uses the html5 tag. Fixes: #3472957 MERGED FROM 4.0.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6137 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a380cb1f90
commit
7eefc80401
|
@ -1,3 +1,12 @@
|
|||
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/events/sound_events.php, godmode/setup/setup.php: fixed
|
||||
the audio, now it uses the html5 tag.
|
||||
|
||||
Fixes: #3472957
|
||||
|
||||
MERGED FROM 4.0.2
|
||||
|
||||
2012-04-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* install.php: cleaned source code style.
|
||||
|
|
|
@ -260,14 +260,14 @@ function toggleButton(type) {
|
|||
}
|
||||
else {
|
||||
$("#button_sound_" + type).attr('src', 'images/control_pause.png');
|
||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
||||
$('#layer_sound_' + type).html("<audio src='" + $("#sound_" + type).val() + "' autoplay='true' hidden='true' loop='true'>");
|
||||
}
|
||||
}
|
||||
|
||||
function replaySound(type) {
|
||||
if ($("#button_sound_" + type).attr('src') == 'images/control_pause.png') {
|
||||
$('#layer_sound_' + type).html("");
|
||||
$('#layer_sound_' + type).html("<embed src='" + $("#sound_" + type).val() + "' autostart='true' hidden='true' loop='true'>");
|
||||
$('#layer_sound_' + type).html("<audio src='" + $("#sound_" + type).val() + "' autoplay='true' hidden='true' loop='true'>");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,12 +122,12 @@ function toggleButton() {
|
|||
function ok() {
|
||||
fired = false;
|
||||
$('body').css('background', 'white');
|
||||
$('embed').remove();
|
||||
$('audio').remove();
|
||||
}
|
||||
|
||||
function stopSound() {
|
||||
$('embed').remove();
|
||||
|
||||
$('audio').remove();
|
||||
|
||||
$('body').css('background', 'white');
|
||||
redBackground = false;
|
||||
|
||||
|
@ -179,7 +179,7 @@ function check_event() {
|
|||
id_row = firedId;
|
||||
fired = true;
|
||||
$('embed').remove();
|
||||
$('body').append("<embed src='../../" + data['sound'] + "' autostart='true' hidden='true' loop='true'>");
|
||||
$('body').append("<audio src='../../" + data['sound'] + "' autoplay='true' hidden='true' loop='true'>");
|
||||
}
|
||||
},
|
||||
"json"
|
||||
|
|
Loading…
Reference in New Issue