diff --git a/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml b/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml index 9c335907..09f6b15f 100644 --- a/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml +++ b/GanjooRazor/Areas/Admin/Pages/ReviewEdits.cshtml @@ -264,14 +264,46 @@ else @if (Model.Correction.VerseOrderText.Any(v => v.OriginalText != v.Text)) { - ویرایش متن + ویرایش متن دارد } else { ویرایش متن ندارد } - + + + + + @if (Model.Correction.Title != null) + { + تغییر عنوان دارد + } + @if (Model.Correction.PoemSummary != null) + { + تغییر خلاصه دارد + } + @if (Model.Correction.Rhythm != null) + { + تغییر وزن دارد + } + @if (Model.Correction.Rhythm2 != null) + { + تغییر وزن دوم دارد + } + @if (Model.Correction.RhymeLetters != null) + { + تغییر قافیه و ردیف دارد + } + @if (Model.Correction.PoemFormat != null) + { + تغییر قالب شعری دارد + } + @if (Model.Correction.GeoDateTags != null && Model.Correction.GeoDateTags.Length > 0) + { + برچسب جغرافیایی/تاریخی دارد (@Model.Correction.GeoDateTags.Length.ToPersianNumbers()) + } + diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml b/GanjooRazor/Areas/User/Pages/Editor.cshtml index 78a0816a..7a3228e6 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml @@ -276,6 +276,16 @@ container.innerHTML = html; } + // the pending-suggestions table sits above the "add a new tag" card, so after adding/removing + // a row from it the change happens off-screen if the user is scrolled down to the form - jump + // them to the table so they can see what just happened + function scrollToPendingGeoDateTags() { + var container = document.getElementById('pending-geotag-suggestions'); + if (container && container.innerHTML.trim() != '') { + container.scrollIntoView({ behavior: 'smooth', block: 'center' }); + } + } + function removeGeoDateTagSuggestion(index) { geoDateTagSuggestions.splice(index, 1); renderPendingGeoDateTags(); @@ -288,6 +298,7 @@ }); $(el).closest('tr').hide(); renderPendingGeoDateTags(); + scrollToPendingGeoDateTags(); } // Reads the "add a new tag" form. Returns a tag object if it has @@ -368,6 +379,7 @@ resetGeoDateTagForm(); renderPendingGeoDateTags(); + scrollToPendingGeoDateTags(); upToast('به فهرست پیشنهادها افزوده شد. برای ثبت نهایی، دکمهٔ «ذخیره» را بزنید.'); } @@ -442,6 +454,7 @@ geoDateTagSuggestions.push(unstagedGeoDateTag); resetGeoDateTagForm(); renderPendingGeoDateTags(); + scrollToPendingGeoDateTags(); } if (verseOrderText.length == 0 && verseOrderSummaries.length == 0 && geoDateTagSuggestions.length == 0) {