diff --git a/resources/views/hardware/quickscan-checkin.blade.php b/resources/views/hardware/quickscan-checkin.blade.php
index a3b3f34737..d71f4e9cb7 100644
--- a/resources/views/hardware/quickscan-checkin.blade.php
+++ b/resources/views/hardware/quickscan-checkin.blade.php
@@ -129,6 +129,12 @@
success : function (data) {
if (data.status == 'success') {
$('#checkedin tbody').prepend("
" + data.payload.asset_tag + " | " + data.payload.model + " | " + data.payload.model_number + " | " + data.messages + " | |
");
+
+ @if ($user->enable_sounds)
+ var audio = new Audio('{{ config('app.url') }}/sounds/success.mp3');
+ audio.play()
+ @endif
+
incrementOnSuccess();
} else {
handlecheckinFail(data);
@@ -148,6 +154,12 @@
});
function handlecheckinFail (data) {
+
+ @if ($user->enable_sounds)
+ var audio = new Audio('{{ config('app.url') }}/sounds/error.mp3');
+ audio.play()
+ @endif
+
if (data.payload.asset_tag) {
var asset_tag = data.payload.asset_tag;
var model = data.payload.model;
diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.php
index 4ecdfa0da5..32166b64f9 100644
--- a/resources/views/hardware/quickscan.blade.php
+++ b/resources/views/hardware/quickscan.blade.php
@@ -156,7 +156,7 @@
$('#audited tbody').prepend("" + data.payload.asset_tag + " | " + data.messages + " | |
");
@if ($user->enable_sounds)
- var audio = new Audio('/sounds/success.mp3');
+ var audio = new Audio('{{ config('app.url') }}/sounds/success.mp3');
audio.play()
@endif
@@ -180,7 +180,7 @@
function handleAuditFail (data) {
@if ($user->enable_sounds)
- var audio = new Audio('/sounds/error.mp3');
+ var audio = new Audio('{{ config('app.url') }}/sounds/error.mp3');
audio.play()
@endif
if (data.asset_tag) {