From 53f3c7ebcd2d431c6896f79d0b91287ddc526b3f Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Mon, 21 Dec 2009 13:15:02 +0100 Subject: [PATCH] added new option "hideWidgetOnCalendarOpen" to automatically hide the widget when opening the calendar app from within the widget --- comingNext/index.html | 10 ++++++++-- comingNextB/index.html | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/comingNext/index.html b/comingNext/index.html index 668867e..e17e29b 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -137,6 +137,12 @@ enableDaylightSaving: { Value: true, Name: 'Enable Daylight Saving (+1h)', Info: 'enable this if you are in a timezone that has daylight saving time (+1h)',}, +hideWidgetOnCalendarOpen: { + Type: 'Bool', + Default: false, + Value: false, + Name: 'Hide Widget When Opening Calendar', + Info: 'enable this if the fullscreen widget should be hidden when clicking on the widget to open the calendar app',}, cssStyle_background: { Type: 'String', Default: 'color:#ffffff; background-color:#000000', @@ -785,7 +791,8 @@ function launchCalendar() { try { widget.openApplication(config['calendarApp'].Value, ""); - //window.close(); + if (config['hideWidgetOnCalendarOpen'].Value) + window.close(); } catch(e) { error('starting Calendar App'); return; @@ -1047,7 +1054,6 @@ function showHomescreen() document.onclick = null; updateData(); } -