Fix JSP formatting issues of configure-authentication-flow.jsp
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
-<carbon:breadcrumb label="breadcrumb.advanced.auth.step.config" resourceBundle="org.wso2.carbon.identity.application.mgt.ui.i18n.Resources"
+<carbon:breadcrumb label="breadcrumb.advanced.auth.step.config"
+ resourceBundle="org.wso2.carbon.identity.application.mgt.ui.i18n.Resources"
topPage="true" request="<%=request%>"/>
<jsp:include page="../dialog/display_messages.jsp"/>
@@ -313,6 +314,7 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
$("#enableScript").prop("checked", false);
$("#configure-auth-flow-form").submit();
}
+
function submitForm() {
$("#configure-auth-flow-form").submit();
}
@@ -386,6 +388,7 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
});
populateTemplates();
+
function populateTemplates() {
var templates = $.parseJSON('<%=templatesJson%>');
$.each(templates, function (category, categoryTemplates) {
@@ -617,6 +620,7 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
});
var deletePermissionRows = [];
+
function deletePermissionRow(obj) {
if (jQuery(obj).parent().prev().children()[0].value != '') {
deletePermissionRows.push(jQuery(obj).parent().prev().children()[0].value);
@@ -817,7 +821,8 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
<fmt:message key='breadcrumb.advanced.auth.step.config.for'/><%=Encode.forHtmlContent(spName)%>
</h2>
<div id="workArea">
- <form id="configure-auth-flow-form" method="post" name="configure-auth-flow-form" method="post" action="configure-authentication-flow-finish-ajaxprocessor.jsp" >
+ <form id="configure-auth-flow-form" method="post" name="configure-auth-flow-form" method="post"
+ action="configure-authentication-flow-finish-ajaxprocessor.jsp">
<input type=hidden name=spName value='<%=Encode.forHtmlAttribute(spName)%>'/>
@@ -900,7 +905,6 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
for (LocalAuthenticatorConfig lclAuthenticator : lclAuthenticators) {
if (lclAuthenticator != null) {
%>
-
<tr>
<td>
<input name="step_<%=step.getStepOrder()%>_local_auth" id="" type="hidden"
@@ -1042,7 +1046,8 @@ var conditionalAuthFunctions = $.parseJSON('<%=availableJsFunctionsJson%>');
<div id='messagebox-warning' class="messagebox-warning-custom" style="height: auto;">
<h3>Prerequisits</h3>
<p>Please change the parameters and default steps as required. For more information, refer
- <a href="https://docs.wso2.com/display/IS570/Conditional+Authentication">Conditional Authentication Docs</a>
+ <a href="https://docs.wso2.com/display/IS570/Conditional+Authentication">Conditional Authentication
+ Docs</a>
</p>
<br/>
<h3>Parameters</h3>
