allowing normal users to suggest rhymes for poems having no rhymes in batch mode

This commit is contained in:
Hamid Reza Mohammadi 2024-11-11 14:53:45 +03:30
parent 6fb86f0a04
commit 1d53b87489

View File

@ -33,20 +33,18 @@
var meter = document.getElementById("v").value;
window.location.href = "/Admin/TransferMeter?m=" + encodeURIComponent(meter);
}
</script>
}
@if(Model.LoggedIn)
{
<script>
function sendSectionMetreSuggection(poemId, sectionIndex) {
var ext = '-' + poemId.toString() + '-' + sectionIndex.toString();
var elName = '#rhythm-new' + '-' + poemId.toString() + '-' + sectionIndex.toString();
var rhythm_new = $(elName).val();
$('#savecorrections' + ext).hide();
var url = '?handler=SendSectionMetreSuggection';
$.ajax({
type: "POST",
url: url,
@ -65,14 +63,9 @@
else
alert(e.responseText);
}
});
}
</script>
}
@ -339,7 +332,7 @@
</div>
</a>
if (Model.CanEdit && Model.Metre == "null")
if (Model.LoggedIn && Model.Metre == "null")
{
<table>
<tr>