From 874e8961781f057f92aef5dd79661d68b4d1bc1a Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Wed, 24 May 2023 17:37:34 +0300 Subject: [PATCH] Fix post-installation sound check for a case with disabled mod_rewrite --- src/mibew/js/source/soundcheck.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mibew/js/source/soundcheck.js b/src/mibew/js/source/soundcheck.js index dd72c71e..a4341d99 100644 --- a/src/mibew/js/source/soundcheck.js +++ b/src/mibew/js/source/soundcheck.js @@ -18,16 +18,17 @@ (function(Mibew, $) { $(document).ready(function() { + var basePath = window.location.href.replace(/install\.php\/install\/done$/, 'install/done'); $('#check-new-visitor').click(function(){ - Mibew.Utils.playSound('../sounds/new_user'); + Mibew.Utils.playSound(basePath + '/../../sounds/new_user'); }); $('#check-new-message').click(function() { - Mibew.Utils.playSound('../sounds/new_message'); + Mibew.Utils.playSound(basePath + '/../../sounds/new_message'); }); $('#check-invitation').click(function() { - Mibew.Utils.playSound('../sounds/invite'); + Mibew.Utils.playSound(basePath + '/../../sounds/invite'); }); }); })(Mibew, jQuery);