MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / restoreProfileDraft

Function restoreProfileDraft

deployments/desktop/static/desktop.js:1502–1510  ·  view source on GitHub ↗
(draft = {})

Source from the content-addressed store, hash-verified

1500 }
1501
1502 function restoreProfileDraft(draft = {}) {
1503 Object.entries(draft).forEach(([id, value]) => {
1504 if (id === "resetProfile") return;
1505 if ($(id)) $(id).value = value;
1506 });
1507 if ($("resetProfile") && Object.prototype.hasOwnProperty.call(draft, "resetProfile")) {
1508 $("resetProfile").checked = Boolean(draft.resetProfile);
1509 }
1510 }
1511
1512 function todayDateValue() {
1513 const now = new Date();

Callers 1

setLocaleFunction · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected