]> code.delx.au - comingnext/commitdiff
added new option "hideWidgetOnCalendarOpen" to automatically hide the widget when...
authorMichael Prager <michael@pragers.de>
Mon, 21 Dec 2009 12:15:02 +0000 (13:15 +0100)
committerMichael Prager <michael@pragers.de>
Mon, 21 Dec 2009 12:15:02 +0000 (13:15 +0100)
comingNext/index.html
comingNextB/index.html

index 668867eff6db9c93a388571d6b8bc511e3a19100..e17e29bd068a88f88fe446d91fb0bab541f1d475 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
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