Content deleted Content added
(bot/CD) |
(bot/CD) |
||
Line 351:
var version = "0.8.0";
var gitAbbrevHash = "
var gitBranch = "main";
var gitDate = "Mon,
var gitVersion = "0.8.0+
/**
Line 6,962:
* Toggle section elements. Removes the section elements (but preservers them in
* `this.sectionElements`) if `false`, re-appends them to the DOM if `true`.
*
* @param toggle
*/
Line 7,126 ⟶ 7,127:
const sectionId = yield getSectionId(this.casePage.title, this.headingName, this.headingN);
yield this.save(sectionId).then((result) => __awaiter(this, void 0, void 0, function* () {
var _a, _b;
if (result) {
mw.notify(mw.msg('deputy.session.section.saved'));
Line 7,142 ⟶ 7,143:
const insertRef = (_a = heading.nextSibling) !== null && _a !== void 0 ? _a : null;
for (const child of Array.from(element.childNodes)) {
if (!this.casePage.isContributionSurveyHeading((_b = normalizeWikiHeading(child
// We're using elements that aren't currently appended to the
// DOM, so we have to manually set the ceiling. Otherwise, we'll
// get the wrong element and ceiling checks will always be false.
element)) === null || _b === void 0 ? void 0 : _b.h)) {
heading.parentNode.insertBefore(child, insertRef);
this.sectionNodes.push(child);
|