forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
252ba91f25
commit
816e921a6c
|
@ -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
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user