From: Michael Prager Date: Tue, 22 Mar 2011 14:11:33 +0000 (+0100) Subject: fixed calendar indicator not showing in some cases X-Git-Url: https://code.delx.au/comingnext/commitdiff_plain/4776048cf0d0fb60d5cf49e8591220c786a0266d fixed calendar indicator not showing in some cases --- diff --git a/Readme.txt b/Readme.txt index d3856e0..ca50ef4 100644 --- a/Readme.txt +++ b/Readme.txt @@ -260,3 +260,4 @@ Changelog: - added italian translation (thanks to Marcella Ferrari and Venos) - fixed "About" link opening inside browser instead of widget - fixed sorting of events without date + - fixed calendar indicators not showing in some cases diff --git a/comingNext/index.html b/comingNext/index.html index cd61eaa..fa571f5 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -56,7 +56,7 @@ var config = { daylightSavingOffset: { Type: 'Int', Default: 1, Value: 1,}, hideWidgetOnCalendarOpen: { Type: 'Bool', Default: false, Value: false,}, showCalendarIndicator: { Type: 'Bool', Default: true, Value: true,}, - excludedCalendars: { Type: 'Array', Default: '', Value: '',}, + excludedCalendars: { Type: 'Array', Default: [], Value: [],}, cssStyle_background: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',}, cssStyle_backgroundFullscreen: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', Value: 'color:#ffffff; background-color:#000000',}, cssStyle_weekDay: { Type: 'String', Default: '', Value: '',}, @@ -1097,8 +1097,12 @@ function loadSettings() config[key].Value = value; else if (config[key].Type == 'UID') config[key].Value = Number(value); - else if (config[key].Type == 'Array') + else if (config[key].Type == 'Array') { config[key].Value = value.split("^"); + if (config[key].Value.length == 1 && config[key].Value[0] == "") { + config[key].Value = []; + } + } } settingsCache = entry.Summary; updateCssClasses();