small fixes

This commit is contained in:
teldra 2022-04-10 14:06:48 +02:00
parent 252ba91f25
commit 816e921a6c
2 changed files with 28 additions and 0 deletions

View File

@ -64,6 +64,12 @@ forms:
name: "Tags"
expanded: false
new: "Neue Tags"
- title: foundations
group: misc
input_type: mc
name: "Stiftungen"
expanded: false
new: "Neue Stiftung"
- title: results
input_type: results
- title: submit

View File

@ -51,6 +51,10 @@ function showInput(e) {
var featured = check_checkboxes('featured');
var about = check_checkboxes('about');
var foundations = check_checkboxes('foundations');
if (form.elements['newfoundations']) { var newfoundations = testor(form.elements['newfoundations'].value.split(',')); }
var lastmod = form.elements['lastmod'].value;
if (lastmod) {
var dl = new Date(lastmod);
@ -98,6 +102,20 @@ function showInput(e) {
if (newfoundations != '""') {
var nfoundations = newfoundations;
}
if (foundations != '') {
var nfoundations = foundations;
}
if (foundations != '' && newfoundations != '""') {
var nfoundations = foundations + "," + newfoundations;
}
if (!title) {
display.innerHTML += "Title is missing..<br>"
@ -134,6 +152,10 @@ function showInput(e) {
display.innerHTML += "events: \[" + nevents + "]<br>";
}
if (nfoundations) {
display.innerHTML += "foundations: \[" + nfoundations + "]<br>";
}
if (ntags) {
display.innerHTML += "tags: \[" + ntags + "]<br>";
}