Commit b79718bf authored by Johannes Bill's avatar Johannes Bill

fixed error propagaytion

parent 3df4c22d
......@@ -171,6 +171,12 @@ function Holidays(year) {
};
this.getHoliday = function (id) {
if(id == 0) {
var ret = [];
for(var key in holidays)
ret.push(holidays[key]);
return ret;
}
if (id in holidays)
return [holidays[id]];
console.error("invalid holiday id " + id);
......
......@@ -42,4 +42,6 @@ openNow(json, now, plz, lang, asString)
openingHoursView(json, now, regionalCode, lang)
-->html string
openNow auch nach absprache, nur mit json incl
\ No newline at end of file
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