Skip to content

Commit

Permalink
Nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 9, 2023
1 parent 3ea58af commit 63d7120
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ function settings_field_order(parentid) {
++i;
if ((e = n.querySelector(".moveup"))) {
e.disabled = movedown === null;
moveup = e;
}
if ((e = n.querySelector(".movedown"))) {
e.disabled = false;
Expand Down Expand Up @@ -335,27 +334,6 @@ handle_ui.on("js-settings-sf-move", function (evt) {
sf_order();
});

function make_sf_instantiator(sample) {
var x = {}, i;
if (sample.instantiators) {
sample = Object.assign({}, sample);
for (i in sample.instantiate) {
sample[i] = sample.instantiate[i];
}
}
if (sample.description) {
x.description = function (pe) {
$(pe).find("textarea").val(sample.description);
}
}
if (sample.required) {
x.required = function (pe) {
$(pe).find("select").val(sample.required === "register" ? 1 : 2);
};
}
return x;
}

demand_load.submission_field_library = demand_load.make(function (resolve) {
$.get(hoturl("api/submissionfieldlibrary"), null, resolve);
});
Expand Down

0 comments on commit 63d7120

Please sign in to comment.