diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml
index f5209a81..81e10475 100644
--- a/GanjooRazor/Pages/Index.cshtml
+++ b/GanjooRazor/Pages/Index.cshtml
@@ -110,6 +110,17 @@
}
};
+
+
}
}
diff --git a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml
index c00d3279..cbaf6a7a 100644
--- a/GanjooRazor/Pages/_AudioPlayerPartial.cshtml
+++ b/GanjooRazor/Pages/_AudioPlayerPartial.cshtml
@@ -33,8 +33,6 @@
_trackTimeChanged(document.getElementById('audio-@(nRecitationIndex + 1)'));
});
-
-
@if (nRecitationIndex == 4 && Model.Recitations.Length > 5)
diff --git a/GanjooRazor/wwwroot/js/bk.js b/GanjooRazor/wwwroot/js/bk.js
index 749d3725..e6d26f1e 100644
--- a/GanjooRazor/wwwroot/js/bk.js
+++ b/GanjooRazor/wwwroot/js/bk.js
@@ -415,12 +415,11 @@ function getVerseIndexFromCoupleIndex(coupletIndex) {
function playCouplet(coupletIndex) {
var vIndex = getVerseIndexFromCoupleIndex(coupletIndex);
- if (jlist.isPlaying) {
- jlist.pause();
- }
var comboId = '#narrators-' + coupletIndex;
- var recitationIndex = $(comboId).find(":selected").val()
- jlist.select(recitationIndex);
+ var recitationIndex = parseInt($(comboId).find(":selected").val());
+ var recitationOrder = recitationIndex + 1;
+
+
if (audioxmlfiles.length > 0) {
$.ajax({
@@ -439,13 +438,15 @@ function playCouplet(coupletIndex) {
var v = parseInt($(this).find('VerseOrder').text())
if (v == vIndex) {
var verseStart = parseInt($(this).find('AudioMiliseconds').text()) / nOneSecondBugFix;
- $(jlist.cssSelector.jPlayer).jPlayer("play");
+ var audioControl = document.getElementById('audio-' + String(recitationOrder));
+ audioControl.play();
+ var buttonList = '#listen-' + coupletIndex;
+ $(buttonList).text('در حال دریافت خوانش ...');
setTimeout(function () {
- $(jlist.cssSelector.jPlayer).jPlayer("play", verseStart);
+ audioControl.currentTime = verseStart;
+ $(buttonList).text('در حال خواندن');
}, 100);
foundCouplet = true;
- var buttonList = '#listen-' + coupletIndex;
- $(buttonList).text('در حال خواندن');
return false;
}
});