From d72297f214ad929bab1cc4229e269181cf863ce8 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 11 Aug 2016 23:41:19 +0530 Subject: [PATCH] resolved UI issues --- .../public/js/platform-configuration.js | 1 - .../src/main/webapp/META-INF/permissions.xml | 6 +++--- .../public/js/platform-configuration.js | 13 +++---------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/public/js/platform-configuration.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/public/js/platform-configuration.js index 01fb2e12c..4ad5d5341 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/public/js/platform-configuration.js +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/public/js/platform-configuration.js @@ -161,7 +161,6 @@ $(document).ready(function () { var gcmAPIKey = $("input#android-config-gcm-api-key").val(); var gcmSenderId = $("input#android-config-gcm-sender-id").val(); var androidLicense = tinyMCE.activeEditor.getContent(); - alert(androidLicense); var errorMsgWrapper = "#android-config-error-msg"; var errorMsg = "#android-config-error-msg span"; if (notifierType == notifierTypeConstants["LOCAL"] && !notifierFrequency) { diff --git a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/webapp/META-INF/permissions.xml b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/webapp/META-INF/permissions.xml index c3fd4697b..1a69d570d 100644 --- a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/webapp/META-INF/permissions.xml +++ b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/webapp/META-INF/permissions.xml @@ -119,7 +119,7 @@ View Tenant configuration /device-mgt/windows/tenant/configuration - /configuration + /services/configuration GET emm_admin @@ -127,7 +127,7 @@ Add Tenant configuration /device-mgt/windows/tenant/configuration - /configuration + /services/configuration POST emm_admin @@ -135,7 +135,7 @@ Update Tenant configuration /device-mgt/windows/tenant/configuration - /configuration + /services/configuration PUT emm_admin diff --git a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js index 8da747255..fc5a5aa66 100644 --- a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js +++ b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js @@ -18,8 +18,6 @@ // Constants to define platform types available var platformTypeConstants = { - "ANDROID": "android", - "IOS": "ios", "WINDOWS": "windows" }; @@ -73,9 +71,6 @@ function promptErrorPolicyPlatform(errorMsg) { } $(document).ready(function () { - - var platformsSupported = $("#typeDiv").attr("typeData"); - $("#gcm-inputs").hide(); tinymce.init({ selector: "textarea", height:500, @@ -89,13 +84,11 @@ $(document).ready(function () { toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" }); - var windowsConfigAPI = "/api/device-mgt/windows/v1.0/configuration"; + var windowsConfigAPI = "/api/device-mgt/windows/v1.0/services/configuration"; invokerUtil.get( windowsConfigAPI, - function (data, textStatus, jqXHR) { - console.log(jqXHR); - console.log(data); + function (data) { data = JSON.parse(data); if (data != null && data.configuration != null) { for (var i = 0; i < data.configuration.length; i++) { @@ -156,7 +149,7 @@ $(document).ready(function () { $("button#save-windows-btn").click(function () { var notifierFrequency = $("#windows-config-notifier-frequency").val(); - var windowsLicense = tinymce.get('windows-eula').getContent(); + var windowsLicense = tinyMCE.activeEditor.getContent(); if (!notifierFrequency) { $(errorMsgWindows).text("Polling Interval is a required field. It cannot be empty.");