mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-15 03:03:17 +02:00
ADded hints to mutations. Not visisble yet!!!
This commit is contained in:
1 parent
64807f3c7a
commit
f37d0a77f9
2 files changed
+27
No files matched your search
@@ -98,6 +98,18 @@ $PageSection = "Admin";
|
|||||||
></textarea>
|
></textarea>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="AdminEditorField AdminEditorWideField">
|
||||||
|
<span>Hint</span>
|
||||||
|
<textarea
|
||||||
|
id="AdminMutationHint"
|
||||||
|
rows="3"
|
||||||
|
placeholder="Optional hint shown by the Mutation Hints upgrade."
|
||||||
|
></textarea>
|
||||||
|
<small>
|
||||||
|
Optional. Leave blank if this mutation should not have a hint.
|
||||||
|
</small>
|
||||||
|
</label>
|
||||||
|
|
||||||
<label class="AdminEditorField">
|
<label class="AdminEditorField">
|
||||||
<span>Priority</span>
|
<span>Priority</span>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -626,6 +626,11 @@ function LoadAdminMutationIntoForm(
|
|||||||
Mutation.Description ?? ""
|
Mutation.Description ?? ""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
SetAdminMutationField(
|
||||||
|
"AdminMutationHint",
|
||||||
|
Mutation.Hint ?? ""
|
||||||
|
);
|
||||||
|
|
||||||
SetAdminMutationField(
|
SetAdminMutationField(
|
||||||
"AdminMutationPriority",
|
"AdminMutationPriority",
|
||||||
Number(
|
Number(
|
||||||
@@ -749,6 +754,11 @@ function StartNewAdminMutation() {
|
|||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
SetAdminMutationField(
|
||||||
|
"AdminMutationHint",
|
||||||
|
""
|
||||||
|
);
|
||||||
|
|
||||||
SetAdminMutationField(
|
SetAdminMutationField(
|
||||||
"AdminMutationPriority",
|
"AdminMutationPriority",
|
||||||
10
|
10
|
||||||
@@ -1991,6 +2001,11 @@ function GetAdminMutationFormData() {
|
|||||||
"AdminMutationDescription"
|
"AdminMutationDescription"
|
||||||
).value.trim(),
|
).value.trim(),
|
||||||
|
|
||||||
|
Hint:
|
||||||
|
document.getElementById(
|
||||||
|
"AdminMutationHint"
|
||||||
|
).value.trim(),
|
||||||
|
|
||||||
Priority: Number(
|
Priority: Number(
|
||||||
document.getElementById(
|
document.getElementById(
|
||||||
"AdminMutationPriority"
|
"AdminMutationPriority"
|
||||||
|
|||||||
Reference in new issue
Block a user