resolved UI issues

revert-dabc3590
ayyoob 9 years ago
parent d70c576ff0
commit d72297f214

@ -161,7 +161,6 @@ $(document).ready(function () {
var gcmAPIKey = $("input#android-config-gcm-api-key").val(); var gcmAPIKey = $("input#android-config-gcm-api-key").val();
var gcmSenderId = $("input#android-config-gcm-sender-id").val(); var gcmSenderId = $("input#android-config-gcm-sender-id").val();
var androidLicense = tinyMCE.activeEditor.getContent(); var androidLicense = tinyMCE.activeEditor.getContent();
alert(androidLicense);
var errorMsgWrapper = "#android-config-error-msg"; var errorMsgWrapper = "#android-config-error-msg";
var errorMsg = "#android-config-error-msg span"; var errorMsg = "#android-config-error-msg span";
if (notifierType == notifierTypeConstants["LOCAL"] && !notifierFrequency) { if (notifierType == notifierTypeConstants["LOCAL"] && !notifierFrequency) {

@ -119,7 +119,7 @@
<Permission> <Permission>
<name>View Tenant configuration</name> <name>View Tenant configuration</name>
<path>/device-mgt/windows/tenant/configuration</path> <path>/device-mgt/windows/tenant/configuration</path>
<url>/configuration</url> <url>/services/configuration</url>
<method>GET</method> <method>GET</method>
<scope>emm_admin</scope> <scope>emm_admin</scope>
</Permission> </Permission>
@ -127,7 +127,7 @@
<Permission> <Permission>
<name>Add Tenant configuration</name> <name>Add Tenant configuration</name>
<path>/device-mgt/windows/tenant/configuration</path> <path>/device-mgt/windows/tenant/configuration</path>
<url>/configuration</url> <url>/services/configuration</url>
<method>POST</method> <method>POST</method>
<scope>emm_admin</scope> <scope>emm_admin</scope>
</Permission> </Permission>
@ -135,7 +135,7 @@
<Permission> <Permission>
<name>Update Tenant configuration</name> <name>Update Tenant configuration</name>
<path>/device-mgt/windows/tenant/configuration</path> <path>/device-mgt/windows/tenant/configuration</path>
<url>/configuration</url> <url>/services/configuration</url>
<method>PUT</method> <method>PUT</method>
<scope>emm_admin</scope> <scope>emm_admin</scope>
</Permission> </Permission>

@ -18,8 +18,6 @@
// Constants to define platform types available // Constants to define platform types available
var platformTypeConstants = { var platformTypeConstants = {
"ANDROID": "android",
"IOS": "ios",
"WINDOWS": "windows" "WINDOWS": "windows"
}; };
@ -73,9 +71,6 @@ function promptErrorPolicyPlatform(errorMsg) {
} }
$(document).ready(function () { $(document).ready(function () {
var platformsSupported = $("#typeDiv").attr("typeData");
$("#gcm-inputs").hide();
tinymce.init({ tinymce.init({
selector: "textarea", selector: "textarea",
height:500, 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" 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( invokerUtil.get(
windowsConfigAPI, windowsConfigAPI,
function (data, textStatus, jqXHR) { function (data) {
console.log(jqXHR);
console.log(data);
data = JSON.parse(data); data = JSON.parse(data);
if (data != null && data.configuration != null) { if (data != null && data.configuration != null) {
for (var i = 0; i < data.configuration.length; i++) { for (var i = 0; i < data.configuration.length; i++) {
@ -156,7 +149,7 @@ $(document).ready(function () {
$("button#save-windows-btn").click(function () { $("button#save-windows-btn").click(function () {
var notifierFrequency = $("#windows-config-notifier-frequency").val(); var notifierFrequency = $("#windows-config-notifier-frequency").val();
var windowsLicense = tinymce.get('windows-eula').getContent(); var windowsLicense = tinyMCE.activeEditor.getContent();
if (!notifierFrequency) { if (!notifierFrequency) {
$(errorMsgWindows).text("Polling Interval is a required field. It cannot be empty."); $(errorMsgWindows).text("Polling Interval is a required field. It cannot be empty.");

Loading…
Cancel
Save