]> code.delx.au - comingnext/blobdiff - comingNextB/index.html
added new option "hideWidgetOnCalendarOpen" to automatically hide the widget when...
[comingnext] / comingNextB / index.html
index 5f693a0033caa6a61fccf9a566f3077dcb2207f4..7594a33663666a05d8154e0df02ed37085b18e89 100644 (file)
@@ -137,6 +137,12 @@ enableDaylightSaving: {
        Value: true,\r
        Name: 'Enable Daylight Saving (+1h)',\r
        Info: 'enable this if you are in a timezone that has daylight saving time (+1h)',},\r
+hideWidgetOnCalendarOpen: {\r
+       Type: 'Bool',\r
+       Default: false,\r
+       Value: false,\r
+       Name: 'Hide Widget When Opening Calendar',\r
+       Info: 'enable this if the fullscreen widget should be hidden when clicking on the widget to open the calendar app',},\r
 cssStyle_background: {\r
        Type: 'String',\r
        Default: 'color:#ffffff; background-color:#000000',\r
@@ -785,7 +791,8 @@ function launchCalendar()
 {\r
        try {\r
                widget.openApplication(config['calendarApp'].Value, "");\r
-               //window.close();\r
+               if (config['hideWidgetOnCalendarOpen'].Value)\r
+                       window.close();\r
        } catch(e) {\r
                error('starting Calendar App');\r
                return;\r
@@ -1047,7 +1054,6 @@ function showHomescreen()
        document.onclick = null;\r
        updateData();\r
 }\r
-\r
 </script>\r
 \r
 <style type="text/css">\r