From 63d7120ef60b7b2e48508c685ec7f8e59b73fba9 Mon Sep 17 00:00:00 2001 From: Eddie Kohler Date: Fri, 8 Sep 2023 22:41:22 -0400 Subject: [PATCH] Nits. --- scripts/settings.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/scripts/settings.js b/scripts/settings.js index ad4ce6178..d9d6c4818 100644 --- a/scripts/settings.js +++ b/scripts/settings.js @@ -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; @@ -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); });