diff --git a/skin/sounds/bata_ilic_michaela_40bps.mp3 b/skin/sounds/bata_ilic_michaela_40bps.mp3 deleted file mode 100644 index f3c8aa468..000000000 Binary files a/skin/sounds/bata_ilic_michaela_40bps.mp3 and /dev/null differ diff --git a/skin/sounds/bata_ilic_michaela_40bps.ogg b/skin/sounds/inventar_error.ogg similarity index 100% rename from skin/sounds/bata_ilic_michaela_40bps.ogg rename to skin/sounds/inventar_error.ogg diff --git a/vilesci/inventar/inventar_inventur.php b/vilesci/inventar/inventar_inventur.php index 9b4fccc86..56f702d14 100644 --- a/vilesci/inventar/inventar_inventur.php +++ b/vilesci/inventar/inventar_inventur.php @@ -269,6 +269,7 @@ if(isset($_POST['updateliste'])) var div = document.getElementById('inventarliste'); var p = document.createElement("p"); var txt = document.createTextNode("Error:"+inventarnummer); + ErrorSound(); p.appendChild(txt); div.appendChild(p); document.getElementById('inventarnummer').value=''; @@ -282,9 +283,18 @@ if(isset($_POST['updateliste'])) { return row[0] + " " + row[1] + "<\/i> "; } + function ErrorSound() + { + var audioElement = document.getElementById('sound1'); + audioElement.play(); + } + +

 Inventar - Inventur 

" method="post" enctype="application/x-www-form-urlencoded">
@@ -451,4 +461,4 @@ elseif($work=='uebersicht') } ?> - \ No newline at end of file +