# HG changeset patch # User Felix Wolfsteller # Date 1332245741 0 # Node ID 7568d97d74cec8cbb944f1228b126fc7250a0ffc # Parent 0eeceffd50e388a15c6430c26d010bf711fa35cd Disable spinnerbox if theme is disabled. flys-client/trunk@4171 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0eeceffd50e3 -r 7568d97d74ce flys-client/ChangeLog --- a/flys-client/ChangeLog Tue Mar 20 11:59:37 2012 +0000 +++ b/flys-client/ChangeLog Tue Mar 20 12:15:41 2012 +0000 @@ -1,3 +1,10 @@ +2012-03-20 Felix Wolfsteller + + Last step for fix flys/issue618. + + * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java: + Do not enable spinner if theme is disabled. + 2012-03-20 Felix Wolfsteller * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java: diff -r 0eeceffd50e3 -r 7568d97d74ce flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java Tue Mar 20 11:59:37 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java Tue Mar 20 12:15:41 2012 +0000 @@ -555,6 +555,19 @@ } }); + if (facetRecord.getTheme().getActive() != 1) { + spinnerItem.disable(); + } + + /* + // To have visual representation of synchronous + // navigation or not per theme, snip: + if (synchronCrossSectionThemes.contains (themeHash + (facetRecord.getTheme()))) { + spinnerItem.setTextBoxStyle("bgBlueDark"); + } + */ + DynamicForm formWrap = new DynamicForm(); formWrap.setFields(spinnerItem); formWrap.setTitlePrefix("");