Commit 8e1b97e6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Success message is now printed.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1617 b35dd754-fafc-0310-a699-88a17e54d16e
parent 870efecc
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<c:set var="success" value="false" />
<% // Get parameters <% // Get parameters
boolean save = request.getParameter("save") != null; boolean save = request.getParameter("save") != null;
boolean inbandEnabled = ParamUtils.getBooleanParameter(request,"inbandEnabled"); boolean inbandEnabled = ParamUtils.getBooleanParameter(request,"inbandEnabled");
...@@ -48,9 +46,6 @@ ...@@ -48,9 +46,6 @@
if (save) { if (save) {
regHandler.setInbandRegEnabled(inbandEnabled); regHandler.setInbandRegEnabled(inbandEnabled);
authHandler.setAllowAnonymous(anonLogin); authHandler.setAllowAnonymous(anonLogin);
%>
<c:set var="success" value="true" />
<%
} }
// Reset the value of page vars: // Reset the value of page vars:
...@@ -64,7 +59,7 @@ ...@@ -64,7 +59,7 @@
<form action="reg-settings.jsp"> <form action="reg-settings.jsp">
<c:if test="success" > <% if (save) { %>
<div class="jive-success"> <div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
...@@ -77,7 +72,7 @@ ...@@ -77,7 +72,7 @@
</table> </table>
</div><br> </div><br>
</c:if> <% } %>
<fieldset> <fieldset>
<legend><fmt:message key="reg.settings.inband_account" /></legend> <legend><fmt:message key="reg.settings.inband_account" /></legend>
...@@ -93,8 +88,8 @@ ...@@ -93,8 +88,8 @@
<%= ((inbandEnabled) ? "checked" : "") %>> <%= ((inbandEnabled) ? "checked" : "") %>>
</td> </td>
<td width="99%"> <td width="99%">
<label for="rb01"><b><fmt:message key="reg.settings.enable" /></b></label> - <label for="rb01"><b><fmt:message key="reg.settings.enable" /></b> -
<fmt:message key="reg.settings.auto_create_user" /> <fmt:message key="reg.settings.auto_create_user" /></label>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -103,7 +98,7 @@ ...@@ -103,7 +98,7 @@
<%= ((!inbandEnabled) ? "checked" : "") %>> <%= ((!inbandEnabled) ? "checked" : "") %>>
</td> </td>
<td width="99%"> <td width="99%">
<label for="rb02"><b><fmt:message key="reg.settings.disable" /></b></label> - <fmt:message key="reg.settings.not_auto_create" /> <label for="rb02"><b><fmt:message key="reg.settings.disable" /></b> - <fmt:message key="reg.settings.not_auto_create" /></label>
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -127,7 +122,7 @@ ...@@ -127,7 +122,7 @@
<%= ((anonLogin) ? "checked" : "") %>> <%= ((anonLogin) ? "checked" : "") %>>
</td> </td>
<td width="99%"> <td width="99%">
<label for="rb03"><b><fmt:message key="reg.settings.enable" /></b></label> - <fmt:message key="reg.settings.anyone_login" /> <label for="rb03"><b><fmt:message key="reg.settings.enable" /></b> - <fmt:message key="reg.settings.anyone_login" /></label>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -136,7 +131,7 @@ ...@@ -136,7 +131,7 @@
<%= ((!anonLogin) ? "checked" : "") %>> <%= ((!anonLogin) ? "checked" : "") %>>
</td> </td>
<td width="99%"> <td width="99%">
<label for="rb04"><b><fmt:message key="reg.settings.disable" /></b></label> - <fmt:message key="reg.settings.only_registered_login" /> <label for="rb04"><b><fmt:message key="reg.settings.disable" /></b> - <fmt:message key="reg.settings.only_registered_login" /></label>
</td> </td>
</tr> </tr>
</tbody> </tbody>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment