JS code formatting and line wrapping fixed
@@ -236,7 +236,6 @@ var img = "";
<%}%>
-
var idpNumber = 0;
var reqPathAuth = 0;
var localAuthNumber = 0;
@@ -414,12 +413,13 @@ var img = "";
startLine = cursorCoordsBeforeChange.line;
});
myCodeMirror.on('inputRead', function onChange(editor, input) {
- if (input.text[0] === ';' || input.text[0] === ' ') { return; }
+ if (input.text[0] === ';' || input.text[0] === ' ') {
+ return;
+ }
CodeMirror.commands.autocomplete(myCodeMirror, null, {completeSingle: false})
});
-
$("#enableScript").click(function () {
checkScriptEnabled();
});
@@ -464,7 +464,8 @@ var img = "";
$("#codeMirrorTemplate").show();
$("#addTemplate").text("Hide Template List");
$("#addTemplate").css("background-image", "url(images/up.gif)");
- };
+ }
+ ;
}
});
@@ -547,7 +548,8 @@ var img = "";
contentDiv.find('.claimMappingAddLinkssLocal').unbind();
var tempStepOrderVal = newStepOrderVal;
contentDiv.find('.claimMappingAddLinkssLocal').click(function () {
- addLocalRow(this, tempStepOrderVal);return false;
+ addLocalRow(this, tempStepOrderVal);
+ return false;
});
@@ -559,7 +561,8 @@ var img = "";
contentDiv.find('.claimMappingAddLinkssIdp').attr('onclick', '');
contentDiv.find('.claimMappingAddLinkssIdp').unbind();
contentDiv.find('.claimMappingAddLinkssIdp').click(function () {
- addIDPRow(this, tempStepOrderVal);return false;
+ addIDPRow(this, tempStepOrderVal);
+ return false;
});
var authnName = "";
if (contentDiv.find('input[name="step_' + oldStepOrderVal + '_fed_auth"]').length > 0) {
@@ -592,8 +595,7 @@ var img = "";
var selectedObj = jQuery(obj).prev().find(":selected");
var selectedAuthenticatorName = selectedObj.val();
var selectedAuthenticatorDisplayName = selectedObj.text();
- if(!validateAuthenticators('step_'+stepId+'_local_auth', selectedAuthenticatorName))
- {
+ if (!validateAuthenticators('step_' + stepId + '_local_auth', selectedAuthenticatorName)) {
return false;
}
@@ -603,7 +605,8 @@ var img = "";
.parent()
.parent()
.append(
- jQuery('<tr><td><input name="step_'+ stepId +'_local_auth" id="" type="hidden" value="' + selectedAuthenticatorName + '" />'+ selectedAuthenticatorDisplayName +'</td><td class="leftCol-small" ><a onclick="deleteLocalAuthRow(this);return false;" href="#" class="icon-link" style="background-image: url(images/delete.gif)"> Delete </a></td></tr>')); }
+ jQuery('<tr><td><input name="step_' + stepId + '_local_auth" id="" type="hidden" value="' + selectedAuthenticatorName + '" />' + selectedAuthenticatorDisplayName + '</td><td class="leftCol-small" ><a onclick="deleteLocalAuthRow(this);return false;" href="#" class="icon-link" style="background-image: url(images/delete.gif)"> Delete </a></td></tr>'));
+ }
function addIDPRow(obj, stepID) {
var selectedObj = jQuery(obj).prev().find(":selected");
