forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
252ba91f25
commit
816e921a6c
|
@ -64,6 +64,12 @@ forms:
|
||||||
name: "Tags"
|
name: "Tags"
|
||||||
expanded: false
|
expanded: false
|
||||||
new: "Neue Tags"
|
new: "Neue Tags"
|
||||||
|
- title: foundations
|
||||||
|
group: misc
|
||||||
|
input_type: mc
|
||||||
|
name: "Stiftungen"
|
||||||
|
expanded: false
|
||||||
|
new: "Neue Stiftung"
|
||||||
- title: results
|
- title: results
|
||||||
input_type: results
|
input_type: results
|
||||||
- title: submit
|
- title: submit
|
||||||
|
|
|
@ -51,6 +51,10 @@ function showInput(e) {
|
||||||
var featured = check_checkboxes('featured');
|
var featured = check_checkboxes('featured');
|
||||||
var about = check_checkboxes('about');
|
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;
|
var lastmod = form.elements['lastmod'].value;
|
||||||
if (lastmod) {
|
if (lastmod) {
|
||||||
var dl = new Date(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) {
|
if (!title) {
|
||||||
display.innerHTML += "Title is missing..<br>"
|
display.innerHTML += "Title is missing..<br>"
|
||||||
|
@ -134,6 +152,10 @@ function showInput(e) {
|
||||||
display.innerHTML += "events: \[" + nevents + "]<br>";
|
display.innerHTML += "events: \[" + nevents + "]<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nfoundations) {
|
||||||
|
display.innerHTML += "foundations: \[" + nfoundations + "]<br>";
|
||||||
|
}
|
||||||
|
|
||||||
if (ntags) {
|
if (ntags) {
|
||||||
display.innerHTML += "tags: \[" + ntags + "]<br>";
|
display.innerHTML += "tags: \[" + ntags + "]<br>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user