Fixing EMM-1683

This commit is contained in:
Megala 2016-10-05 10:09:35 +05:30
parent b7990b9146
commit 42a9ba92a6
2 changed files with 7 additions and 3 deletions

View File

@ -213,7 +213,7 @@ function removeUser(username) {
}
var removeUserAPI = apiBasePath + "/users/" + username;
if (domain) {
url += '?domain=' + domain;
removeUserAPI += '?domain=' + domain;
}
$(modalPopupContent).html($('#remove-user-modal-content').html());
showPopup();
@ -223,7 +223,11 @@ function removeUser(username) {
removeUserAPI,
function (data, textStatus, jqXHR) {
if (jqXHR.status == 200) {
if (domain) {
$("#user-" + domain + "\\/" + username).remove();
} else {
$("#user-" + username).remove();
}
// update modal-content with success message
$(modalPopupContent).html($('#remove-user-success-content').html());
$("a#remove-user-success-link").click(function () {

View File

@ -67,7 +67,7 @@ $(document).ready(function () {
changePasswordFormData["oldPassword"] = unescape((currentPassword));
changePasswordFormData["newPassword"] = unescape((newPassword));
var changePasswordAPI = "/api/device-mgt/v1.0/users/" + user + "/credentials";
var changePasswordAPI = "/api/device-mgt/v1.0/users/credentials";
invokerUtil.put(
changePasswordAPI,