From 28c2fb0bb25617ccb1e56c3e0fc03a0582e3ce1b Mon Sep 17 00:00:00 2001 From: Richard Harrison Date: Tue, 9 Feb 2016 13:26:06 +0100 Subject: [PATCH] TimeDialog: remove sliders and checkbox --- gui/dialogs/timeofday.xml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gui/dialogs/timeofday.xml b/gui/dialogs/timeofday.xml index 704431095..65a45e0f6 100644 --- a/gui/dialogs/timeofday.xml +++ b/gui/dialogs/timeofday.xml @@ -67,7 +67,7 @@ - + 0 1 @@ -112,7 +112,7 @@ - + 0 @@ -156,7 +156,7 @@ - + @@ -220,7 +220,7 @@ /instrumentation/clock/local-short-string - + @@ -414,7 +414,7 @@ midnight - + @@ -451,7 +451,7 @@ var year = substr(dtv,0,4); var month = substr(dtv,5,2); var day = substr(dtv,8,2); - var daymax = gui.findElementByName(dlgRoot, "sl_day").getChild("max"); + #var daymax = gui.findElementByName(dlgRoot, "sl_day").getChild("max"); var months = ["January","February","March","April","May","June","July","August","September","October","November","December"]; var monthmax = [31,28,31,30,31,30,31,31,30,31,30,31]; @@ -484,7 +484,7 @@ var second = substr(dtv,18,2); var new_dt=sprintf("%04d-%02d-%02dT%02d:%02d:%02d",getprop("/sim/time/demand-year"),month,getprop("/sim/time/demand-day"),hour,minute,second*1); setprop("/sim/time/gmt",new_dt); - daymax.setValue(monthmax[month-1]); + #daymax.setValue(monthmax[month-1]); if (getprop("/sim/time/demand-day") > monthmax[month-1]) setprop("/sim/time/demand-day",sprintf("%02d",monthmax[month-1])); }