Project

General

Profile

« Previous | Next » 

Revision 4115

Added by daigle over 16 years ago

Clean up the way default radio works

View differences:

skins-configuration.jsp
74 74
	<table class="config-section">
75 75
		<tr>
76 76
			<td class="config-checkbox">
77
				<input type="checkbox" name="<%= skinName %>.cb" id="<%= skinName %>.cb"onClick="toggleHiddenTable(this, 'hiding-section-<%= skinName %>')"/>
77
				<input type="checkbox" 
78
<%
79
		if (skinName.equals(defaultStyle)) {
80
%>
81
				checked="yes"
82
<%
83
		} 
84
%>
85
				name="<%= skinName %>.cb" id="<%= skinName %>.cb"onClick="toggleHiddenTable(this, 'hiding-section-<%= skinName %>')"/>
78 86
			</td>
79 87
			<td class="config-checkbox-label">	
80 88
				<label for="<%= skinName %>.cb %>"><%= skinName %></label>
......
97 105
			</td>
98 106
		</tr>
99 107
	</table>
100
	<table class="config-section-hiding" id="hiding-section-<%= skinName %>">
108
	<table class="config-section-hiding" 
101 109
<%
110
		if (skinName.equals(defaultStyle)) {
111
%>
112
				style="display: table;"
113
<%
114
		} 
115
%>	
116
	id="hiding-section-<%= skinName %>">
117
<%
102 118
		HashMap<String, String> skinProperties = allSkinProperties.get(skinName);
103 119
		PropertiesMetaData metaData = (PropertiesMetaData)allMetaData.get(skinName);
104 120
		Map<Integer, MetaDataGroup> metaDataGroups = metaData.getGroups();
......
112 128
					<label for="<%= skinName %>-radio"> Make <%= skinName %> default </label>
113 129
				</td>
114 130
				<td class="config-property-input" >
115
					<input type="radio" name="default-flag" id="<%= skinName %>-radio" value="<%= skinName %>" onChange="toggleHiddenDefaultText('default-flag', '<%= skinName %>')"/>
131
					<input type="radio" 
132
<%
133
			if (skinName.equals(defaultStyle)) {
134
%>
135
					checked
136
<%
137
			} 
138
%>
139
					name="default-flag" id="<%= skinName %>-radio" value="<%= skinName %>" onChange="toggleHiddenDefaultText('default-flag', '<%= skinName %>')"/>
116 140
				</td>
117 141
				<td class="config-question-mark">
118 142
					<img src="style/images/question-mark.gif" 

Also available in: Unified diff