Commit b79718bf authored by Johannes Bill's avatar Johannes Bill

fixed error propagaytion

parent 3df4c22d
...@@ -171,6 +171,12 @@ function Holidays(year) { ...@@ -171,6 +171,12 @@ function Holidays(year) {
}; };
this.getHoliday = function (id) { this.getHoliday = function (id) {
if(id == 0) {
var ret = [];
for(var key in holidays)
ret.push(holidays[key]);
return ret;
}
if (id in holidays) if (id in holidays)
return [holidays[id]]; return [holidays[id]];
console.error("invalid holiday id " + id); console.error("invalid holiday id " + id);
......
...@@ -43,3 +43,5 @@ openingHoursView(json, now, regionalCode, lang) ...@@ -43,3 +43,5 @@ openingHoursView(json, now, regionalCode, lang)
-->html string -->html string
openNow auch nach absprache, nur mit json incl openNow auch nach absprache, nur mit json incl
evtl ical export
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment