From 10372a7f4e27efd007839151b3f6a6a3e1726ffa Mon Sep 17 00:00:00 2001 From: Megala Date: Thu, 6 Oct 2016 11:50:57 +0530 Subject: [PATCH] Changing the equality check --- .../app/units/mdm.unit.policy.create/public/js/policy-create.js | 2 +- .../devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js index df2eb053a..baa0d2be1 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.create/public/js/policy-create.js @@ -361,7 +361,7 @@ validateStep["policy-profile"] = function () { if (wifiTypeUIElement.is("input:checkbox")) { wifiType = wifiTypeUIElement.is(":checked").toString(); } - if (wifiType !== "none") { + if (wifiType != "none") { if (!$("#wifi-password").val()) { validationStatus = { "error": true, diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js index f2b5c05d2..23756d8a0 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js @@ -388,7 +388,7 @@ validateStep["policy-profile"] = function () { if (wifiTypeUIElement.is("input:checkbox")) { wifiType = wifiTypeUIElement.is(":checked").toString(); } - if (wifiType !== "none") { + if (wifiType != "none") { if (!$("#wifi-password").val()) { validationStatus = { "error": true,