Project

General

Profile

« Previous | Next » 

Revision 4321

Added by daigle over 16 years ago

Fix bug where skin configs don't read backup properties correctly for checkboxes.

View differences:

skins-configuration.jsp
130 130
%>
131 131
				<div class="form-row"> 
132 132
					<img class="question-mark" src="style/images/question-mark.gif" 
133
						 alt="<%= metaDataProperty.getDescription() %>" 
134 133
						 onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')""/>
135 134
					<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>  		
136 135
					<select class="textinput" name="<%= skinName %>.<%= metaDataProperty.getKey() %>">
......
156 155
%>	
157 156
				<div class="form-row">
158 157
					<img class="question-mark" src="style/images/question-mark.gif" 
159
						 alt="<%= metaDataProperty.getDescription() %>" 
160 158
						 onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
161 159
					<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label></div>
162 160
					<input class="textinput" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" 	             		    	    	           		    	             			
163
							type="<%= fieldType %>"
164
							alt="<%= metaDataProperty.getDescription() %>"/> 
161
							type="<%= fieldType %>"/> 
165 162
				</div>
166 163
<%
167 164
					if (metaDataProperty.getDescription() != null) {
......
177 174
						 onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
178 175
					<input class="checkradio" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" 	             		    	    	           		    	             			
179 176
						   type="<%= fieldType %>"
180
						   alt="<%= metaDataProperty.getDescription() %>"/> 
177
<%
178
					if (skinProperties.get(metaDataProperty.getKey()).equals("true")) {
179
%>
180
							checked="yes"
181
<%		
182
					}   
183
%>
184
						   /> 
181 185
					<label class="checkradio-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>
182 186
				</div>
183 187
<%
......
190 194
%>
191 195
				<div class="form-row">
192 196
					<img class="question-mark" src="style/images/question-mark.gif" 
193
						 alt="<%= metaDataProperty.getDescription() %>"
194 197
						 onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
195 198
					<label class="textinput-label" for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>
196 199
					<input class="textinput" id="<%= skinName %>.<%= metaDataProperty.getKey() %>" name="<%= skinName %>.<%= metaDataProperty.getKey() %>" 
197 200
							value="<%= skinProperties.get(metaDataProperty.getKey()) %>"	             		    	    	           		    	             			
198
							type="<%= fieldType %>	"           			
199
							alt="<%= metaDataProperty.getDescription() %>"/>	
201
							type="<%= fieldType %>"/>	
200 202
				</div>  
201 203
<%
202 204
					if (metaDataProperty.getDescription() != null) {

Also available in: Unified diff