mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixing EMM-1688
This commit is contained in:
parent
7431654f25
commit
4c54ba434a
@ -355,7 +355,22 @@ validateStep["policy-profile"] = function () {
|
||||
};
|
||||
continueToCheckNextInputs = false;
|
||||
}
|
||||
|
||||
// For the secure wifi types, it is required to have a password
|
||||
var wifiTypeUIElement = $("#wifi-type");
|
||||
var wifiType = wifiTypeUIElement.find("option:selected").val();
|
||||
if (wifiTypeUIElement.is("input:checkbox")) {
|
||||
wifiType = wifiTypeUIElement.is(":checked").toString();
|
||||
}
|
||||
if (wifiType !== "none") {
|
||||
if (!$("#wifi-password").val()) {
|
||||
validationStatus = {
|
||||
"error": true,
|
||||
"subErrorMsg": "Password is required for the wifi security type " + wifiType + ". Please provide a password to proceed.",
|
||||
"erroneousFeature": operation
|
||||
};
|
||||
continueToCheckNextInputs = false;
|
||||
}
|
||||
}
|
||||
// at-last, if the value of continueToCheckNextInputs is still true
|
||||
// this means that no error is found
|
||||
if (continueToCheckNextInputs) {
|
||||
|
||||
@ -879,7 +879,7 @@
|
||||
</div>
|
||||
<div class="wr-input-control" id="control-wifi-password" style="display:none;">
|
||||
<label class="wr-input-label" for="wifi-password">
|
||||
Password
|
||||
Password*
|
||||
<span class="helper" title="Password for the wireless network.">
|
||||
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
|
||||
</span>
|
||||
|
||||
@ -382,7 +382,22 @@ validateStep["policy-profile"] = function () {
|
||||
};
|
||||
continueToCheckNextInputs = false;
|
||||
}
|
||||
|
||||
// For the secure wifi types, it is required to have a password
|
||||
var wifiTypeUIElement = $("#wifi-type");
|
||||
var wifiType = wifiTypeUIElement.find("option:selected").val();
|
||||
if (wifiTypeUIElement.is("input:checkbox")) {
|
||||
wifiType = wifiTypeUIElement.is(":checked").toString();
|
||||
}
|
||||
if (wifiType !== "none") {
|
||||
if (!$("#wifi-password").val()) {
|
||||
validationStatus = {
|
||||
"error": true,
|
||||
"subErrorMsg": "Password is required for the wifi security type " + wifiType + ". Please provide a password to proceed.",
|
||||
"erroneousFeature": operation
|
||||
};
|
||||
continueToCheckNextInputs = false;
|
||||
}
|
||||
}
|
||||
// at-last, if the value of continueToCheckNextInputs is still true
|
||||
// this means that no error is found
|
||||
if (continueToCheckNextInputs) {
|
||||
|
||||
@ -903,7 +903,7 @@
|
||||
</div>
|
||||
<div class="wr-input-control" id="control-wifi-password" style="display:none;">
|
||||
<label class="wr-input-label" for="wifi-password">
|
||||
Password
|
||||
Password*
|
||||
<span class="helper" title="Password for the wireless network.">
|
||||
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
|
||||
</span>
|
||||
|
||||
@ -866,7 +866,7 @@
|
||||
</div>
|
||||
<div class="wr-input-control" id="control-wifi-password" style="display:none;">
|
||||
<label class="wr-input-label" for="wifi-password">
|
||||
Password
|
||||
Password*
|
||||
<span class="helper" title="Password for the wireless network.">
|
||||
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
|
||||
</span>
|
||||
|
||||
@ -335,7 +335,7 @@
|
||||
</div>
|
||||
<div class="wr-input-control">
|
||||
<label class="wr-input-label" for="wifi-password">
|
||||
Password
|
||||
Password*
|
||||
<span class="helper" title="Password for the wireless network.">
|
||||
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user