Beautify js code

This commit is contained in:
Fedor A. Fetisov 2014-05-21 13:24:34 +04:00
parent a3f76b3369
commit 55dff20bc1

View File

@ -64,8 +64,7 @@
var player = $('audio[data-file="'+file+'"]');
if (player.length > 0) {
player.get(0).play();
}
else {
} else {
var audioTag = $("<audio>", {autoplay: true, style: "display: none"}).append(
'<source src="' + file + '.wav" type="audio/x-wav" />' +
'<source src="' + file + '.mp3" type="audio/mpeg" codecs="mp3" />' +