Changing the equality check

merge-requests/1/head
Megala 8 years ago
parent 51d6baf1d2
commit 10372a7f4e

@ -361,7 +361,7 @@ validateStep["policy-profile"] = function () {
if (wifiTypeUIElement.is("input:checkbox")) { if (wifiTypeUIElement.is("input:checkbox")) {
wifiType = wifiTypeUIElement.is(":checked").toString(); wifiType = wifiTypeUIElement.is(":checked").toString();
} }
if (wifiType !== "none") { if (wifiType != "none") {
if (!$("#wifi-password").val()) { if (!$("#wifi-password").val()) {
validationStatus = { validationStatus = {
"error": true, "error": true,

@ -388,7 +388,7 @@ validateStep["policy-profile"] = function () {
if (wifiTypeUIElement.is("input:checkbox")) { if (wifiTypeUIElement.is("input:checkbox")) {
wifiType = wifiTypeUIElement.is(":checked").toString(); wifiType = wifiTypeUIElement.is(":checked").toString();
} }
if (wifiType !== "none") { if (wifiType != "none") {
if (!$("#wifi-password").val()) { if (!$("#wifi-password").val()) {
validationStatus = { validationStatus = {
"error": true, "error": true,

Loading…
Cancel
Save