Show the generated transfer type without letting it be chosen
This commit is contained in:
1 parent
a1ff56369e
commit
224c5bff29
1 file changed
+2
-3
@@ -365,12 +365,11 @@
|
|||||||
function fillTypes() {
|
function fillTypes() {
|
||||||
var select = document.querySelector('[name="type"]');
|
var select = document.querySelector('[name="type"]');
|
||||||
Object.keys(Skuld.TYPE_LABELS).forEach(function (key) {
|
Object.keys(Skuld.TYPE_LABELS).forEach(function (key) {
|
||||||
if (key === "transfer_in") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var option = document.createElement("option");
|
var option = document.createElement("option");
|
||||||
option.value = key;
|
option.value = key;
|
||||||
option.textContent = Skuld.typeLabel(key);
|
option.textContent = Skuld.typeLabel(key);
|
||||||
|
// A generated transfer_in is shown, never chosen (docs/spec.md section 7.3).
|
||||||
|
option.disabled = key === "transfer_in";
|
||||||
select.appendChild(option);
|
select.appendChild(option);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user