Fix post-installation sound check for a case with disabled mod_rewrite

This commit is contained in:
Fedor A. Fetisov 2023-05-24 17:37:34 +03:00
parent 973632b4ae
commit 874e896178

View File

@ -18,16 +18,17 @@
(function(Mibew, $) { (function(Mibew, $) {
$(document).ready(function() { $(document).ready(function() {
var basePath = window.location.href.replace(/install\.php\/install\/done$/, 'install/done');
$('#check-new-visitor').click(function(){ $('#check-new-visitor').click(function(){
Mibew.Utils.playSound('../sounds/new_user'); Mibew.Utils.playSound(basePath + '/../../sounds/new_user');
}); });
$('#check-new-message').click(function() { $('#check-new-message').click(function() {
Mibew.Utils.playSound('../sounds/new_message'); Mibew.Utils.playSound(basePath + '/../../sounds/new_message');
}); });
$('#check-invitation').click(function() { $('#check-invitation').click(function() {
Mibew.Utils.playSound('../sounds/invite'); Mibew.Utils.playSound(basePath + '/../../sounds/invite');
}); });
}); });
})(Mibew, jQuery); })(Mibew, jQuery);