Skip to content

Commit f773c1c

Browse files
committed
Nits
1 parent 8c47888 commit f773c1c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

scripts/script.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13407,13 +13407,15 @@ hotcrp.load_paper_sidebar = function () {
1340713407

1340813408
hotcrp.replace_editable_field = function (field, elt) {
1340913409
var pfe = $$(field).closest(".pfe");
13410-
if (elt.tagName !== "DIV" || !hasClass(elt, "pfe")) {
13411-
throw new Error("bad DIV");
13410+
if ((elt.tagName !== "DIV" && elt.tagName !== "FIELDSET")
13411+
|| !hasClass(elt, "pfe")) {
13412+
throw new Error("bad replacement");
1341213413
}
1341313414
pfe.className = elt.className;
1341413415
pfe.replaceChildren();
13415-
while (elt.firstChild)
13416+
while (elt.firstChild) {
1341613417
pfe.appendChild(elt.firstChild);
13418+
}
1341713419
add_pslitem_pfe.call(pfe);
1341813420
};
1341913421

src/api/api_manageemail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ private function ecrun_transferreview() {
286286
$this->inform_at("email", $this->conf->_("<5>Reviews can’t be transferred from {src} to {dst} because there are {submissions} for which both accounts have reviews. (<a href=\"{searchurl}\">List them</a>)",
287287
new FmtArg("src", $this->user->email, 0),
288288
new FmtArg("dst", $this->dstuser->email, 0),
289-
new FmtArg("searchurl", $this->conf->hoturl("search", ["q" => "pidcode:" . SessionList::encode_ids($bothreviewed)], Conf::HOTURL_RAW))));
289+
new FmtArg("searchurl", $this->conf->hoturl("search", ["q" => "pidcode:" . SessionList::encode_ids($bothreviewed)], Conf::HOTURL_RAW), 0)));
290290
}
291291
if (!empty($dstconflict)) {
292292
sort($dstconflict);
@@ -297,7 +297,7 @@ private function ecrun_transferreview() {
297297
$this->inform_at("email", $this->conf->_("<5>Transferring reviews from {src} to {dst} would override some conflicts. (<a href=\"{searchurl}\">List them</a>)",
298298
new FmtArg("src", $this->user->email, 0),
299299
new FmtArg("dst", $this->dstuser->email, 0),
300-
new FmtArg("searchurl", $this->conf->hoturl("search", ["q" => "pidcode:" . SessionList::encode_ids($dstconflict)], Conf::HOTURL_RAW))));
300+
new FmtArg("searchurl", $this->conf->hoturl("search", ["q" => "pidcode:" . SessionList::encode_ids($dstconflict)], Conf::HOTURL_RAW), 0)));
301301
}
302302
if (!empty($bothreviewed)
303303
|| (!empty($dstconflict) && !$this->viewer->privChair)) {

0 commit comments

Comments
 (0)