fixing EMM-1788 calDAV policy validation issue

revert-dabc3590
inoshperera 8 years ago
parent b554ff76e8
commit 87fc819364

@ -1843,14 +1843,8 @@ validateStep["policy-profile"] = function () {
if (continueToCheckNextInputs) { if (continueToCheckNextInputs) {
var calendarAccountPort = $("input#calendar-account-port").val(); var calendarAccountPort = $("input#calendar-account-port").val();
if (!calendarAccountPort) { if (calendarAccountPort) {
validationStatus = { if (!$.isNumeric(calendarAccountPort)) {
"error": true,
"subErrorMsg": "Account Port is empty. You cannot proceed.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!$.isNumeric(calendarAccountPort)) {
validationStatus = { validationStatus = {
"error": true, "error": true,
"subErrorMsg": "Account Port requires a number input.", "subErrorMsg": "Account Port requires a number input.",
@ -1867,6 +1861,7 @@ validateStep["policy-profile"] = function () {
continueToCheckNextInputs = false; continueToCheckNextInputs = false;
} }
} }
}
// at-last, if the value of continueToCheckNextInputs is still true // at-last, if the value of continueToCheckNextInputs is still true
// this means that no error is found // this means that no error is found

@ -3236,7 +3236,7 @@
</label> </label>
<input id="calendar-account-port" type="text" class="form-control operationDataKeys" <input id="calendar-account-port" type="text" class="form-control operationDataKeys"
data-key="calendarAccountPort" maxlength="5" data-default="" data-key="calendarAccountPort" maxlength="5" data-default=""
placeholder="[ Required field which requires Number Input ]"/> placeholder="[ Optional field which requires Number Input ]"/>
</div> </div>
<div class="wr-input-control"> <div class="wr-input-control">

@ -1603,14 +1603,8 @@ validateStep["policy-profile"] = function () {
if (continueToCheckNextInputs) { if (continueToCheckNextInputs) {
var calendarAccountPort = $("input#calendar-account-port").val(); var calendarAccountPort = $("input#calendar-account-port").val();
if (!calendarAccountPort) { if (calendarAccountPort) {
validationStatus = { if (!$.isNumeric(calendarAccountPort)) {
"error": true,
"subErrorMsg": "Account Port is empty. You cannot proceed.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!$.isNumeric(calendarAccountPort)) {
validationStatus = { validationStatus = {
"error": true, "error": true,
"subErrorMsg": "Account Port requires a number input.", "subErrorMsg": "Account Port requires a number input.",
@ -1627,6 +1621,7 @@ validateStep["policy-profile"] = function () {
continueToCheckNextInputs = false; continueToCheckNextInputs = false;
} }
} }
}
// at-last, if the value of continueToCheckNextInputs is still true // at-last, if the value of continueToCheckNextInputs is still true
// this means that no error is found // this means that no error is found

@ -3339,7 +3339,7 @@
</label> </label>
<input id="calendar-account-port" type="text" class="form-control operationDataKeys" <input id="calendar-account-port" type="text" class="form-control operationDataKeys"
data-key="calendarAccountPort" maxlength="5" data-default="" data-key="calendarAccountPort" maxlength="5" data-default=""
placeholder="[ Required field which requires Number Input ]"/> placeholder="[ Optional field which requires Number Input ]"/>
</div> </div>
<div class="wr-input-control"> <div class="wr-input-control">

Loading…
Cancel
Save