diff --git a/GanjooRazor/Pages/_BNumPartial.cshtml b/GanjooRazor/Pages/_BNumPartial.cshtml
index 33f121fa..0a32c889 100644
--- a/GanjooRazor/Pages/_BNumPartial.cshtml
+++ b/GanjooRazor/Pages/_BNumPartial.cshtml
@@ -35,7 +35,7 @@
}
-@foreach(var verse in Model.Verses.Where(v => !string.IsNullOrEmpty(v.CoupletSummary)).ToList())
+@foreach (var verse in Model.Verses.Where(v => !string.IsNullOrEmpty(v.CoupletSummary)).ToList())
{
-
- @{
- var coupletText = "";
- foreach (var verse in Model.Verses)
- {
- coupletText += RMuseum.Services.Implementation.LanguageUtils.MakeTextSearchable(verse.Text);
- coupletText += " ";
- }
- coupletText = coupletText.Trim();
+
+
+ @foreach (var verse in Model.Verses)
+ {
+ var verseTextSearchable = RMuseum.Services.Implementation.LanguageUtils.MakeTextSearchable(verse.Text);
+
+
+ شمار نویسهها (از @verseTextSearchable.Replace(" ", "").Length.ToPersianNumbers() نویسه)
+
+
@verseTextSearchable
+
+
}
-
- شمار نویسهها (از @coupletText.Replace(" ", "").Length.ToPersianNumbers() نویسه)
-
-
@coupletText
-
-
+
@@ -123,10 +120,10 @@
var userNotifiedOnEditInsteadOfComment = false;
function createInformationNotification() {
- tinymce.activeEditor.notificationManager.open({
- text: 'تمنا میکنیم که به جای گوشزد کردن خطاهای املایی و تایپی در حاشیهها از دکمهٔ «ویرایش» استفاده کنید و خطا را تصحیح کنید.',
- type: 'info'
- });
+ tinymce.activeEditor.notificationManager.open({
+ text: 'تمنا میکنیم که به جای گوشزد کردن خطاهای املایی و تایپی در حاشیهها از دکمهٔ «ویرایش» استفاده کنید و خطا را تصحیح کنید.',
+ type: 'info'
+ });
}
tinymce.init({
selector: 'textarea.editorbnum',
@@ -143,20 +140,20 @@
skin: (window.matchMedia("(prefers-color-scheme: dark)").matches && localStorage.getItem("scheme") != "light" ? "oxide-dark" : localStorage.getItem("scheme") == "dark" ? "oxide-dark" : ""),
content_css: (window.matchMedia("(prefers-color-scheme: dark)").matches && localStorage.getItem("scheme") != "light" ? "dark" : localStorage.getItem("scheme") == "dark" ? "dark" : ""),
setup: function (editor) {
- editor.on('tap', function(e) {
- if(userNotifiedOnEditInsteadOfComment == false){
- userNotifiedOnEditInsteadOfComment = true;
- createInformationNotification();
- }
- },
- );
- editor.on('click', function(e) {
- if(userNotifiedOnEditInsteadOfComment == false){
- userNotifiedOnEditInsteadOfComment = true;
- createInformationNotification();
- }
- },
- );
+ editor.on('tap', function (e) {
+ if (userNotifiedOnEditInsteadOfComment == false) {
+ userNotifiedOnEditInsteadOfComment = true;
+ createInformationNotification();
+ }
+ },
+ );
+ editor.on('click', function (e) {
+ if (userNotifiedOnEditInsteadOfComment == false) {
+ userNotifiedOnEditInsteadOfComment = true;
+ createInformationNotification();
+ }
+ },
+ );
},
});