Skip to content

Commit

Permalink
Merge pull request #36 from zorrofox/fix_globalconfig_jsp
Browse files Browse the repository at this point in the history
Fix global config jsp page bugs
  • Loading branch information
snoopdave authored Aug 18, 2019
2 parents 8f2aef8 + 1918954 commit 251c72e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/main/webapp/WEB-INF/jsps/admin/GlobalConfig.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<%-- special case for front page blog --%>
<s:elseif test="#pd.name == 'site.frontpage.weblog.handle'">
<s:select name="%{#pd.name}" label="%{getText(#pd.key)}" value="%{properties[#pd.name].value}"
list="weblogs" listKey="name" listValueKey="handle"/>
list="weblogs" listKey="handle" listValueKey="name"/>
</s:elseif>

<%-- "string" type means use a simple textbox --%>
Expand All @@ -59,12 +59,10 @@
<s:elseif test="#pd.type == 'boolean'">

<s:if test="properties[#pd.name].value == 'true'">
<s:checkbox name="%{#pd.name}" label="%{getText(#pd.key)}"
fieldValue="true" checked="true" onchange="formChanged()"/>
<s:checkbox name="%{#pd.name}" label="%{getText(#pd.key)}" checked="true" onchange="formChanged()"/>
</s:if>
<s:if test="properties[#pd.name].value != 'true'">
<s:checkbox name="%{#pd.name}" label="%{getText(#pd.key)}"
fieldValue="false" onchange="formChanged()"/>
<s:checkbox name="%{#pd.name}" label="%{getText(#pd.key)}" onchange="formChanged()"/>
</s:if>

</s:elseif>
Expand Down

0 comments on commit 251c72e

Please sign in to comment.