diff --git a/dev/patchbot/scripts/post-ai.sh b/dev/patchbot/scripts/post-ai.sh
index 8d53753fb..5131662e5 100755
--- a/dev/patchbot/scripts/post-ai.sh
+++ b/dev/patchbot/scripts/post-ai.sh
@@ -257,10 +257,15 @@ function init_ref() {
updt_save_btn();
}
+// the status line and the save button exist twice, at the top and at the
+// bottom of the page, so both instances are always updated together
function sync_msg(m) {
var el = document.getElementById("sync_msg");
if (el)
el.innerText = m;
+ el = document.getElementById("sync_msg2");
+ if (el)
+ el.innerText = m;
}
// renders the reference notes of line by replacing the whole container
@@ -466,6 +471,7 @@ function cancel_note(i) {
// change so the common case stays cheap.
function updt_save_btn() {
var btn = document.getElementById("save_btn");
+ var btn2 = document.getElementById("save_btn2");
var pending = false;
var i, s, el;
@@ -482,6 +488,8 @@ function updt_save_btn() {
}
}
btn.disabled = !pending;
+ if (btn2)
+ btn2.disabled = !pending;
}
// "Save changes" button: pushes the local edits, i.e. the states differing
@@ -916,6 +924,17 @@ done
echo " "
echo ""
+
+# a copy of the syncing buttons at the bottom right: that's where the user
+# ends up after a review, far from the top ones, and forgetting to save the
+# work is too easy when no button remains in sight
+if [ -n "$VERSION" ]; then
+ echo -n "New CID Subject Verdict
N U W YReason