Fix for Jira : EMM-1682 and EMM-1653

revert-70aa11f8
kamidu 8 years ago
parent 2f852d84f4
commit 8c94e83431

@ -5,13 +5,14 @@
<i class="square-element text fw fw-user"></i> <i class="square-element text fw fw-user"></i>
</div> </div>
</td> </td>
<td class="fade-edge remove-padding-top" >{{roleName}}</td> <td class="fade-edge remove-padding-top">{{roleName}}</td>
<td class="text-right content-fill text-left-on-grid-view no-wrap"> <td class="text-right content-fill text-left-on-grid-view no-wrap">
{{#unequal adminRole roleName }} {{#unequal adminRole roleName }}
{{#if canEdit}} {{#if canEdit}}
<a onclick="javascript:loadRoleBasedActionURL('edit', '{{roleName}}')" data-role="{{roleName}}" data-click-event="edit-form" <a onclick="javascript:loadRoleBasedActionURL('edit', '{{roleName}}')" data-role="{{roleName}}"
class="btn padding-reduce-on-grid-view edit-role-link"> data-click-event="edit-form"
class="btn padding-reduce-on-grid-view edit-role-link" title="Edit Role">
<span class="fw-stack fw-lg"> <span class="fw-stack fw-lg">
<i class="fw fw-ring fw-stack-2x"></i> <i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-user fw-stack-1x"></i> <i class="fw fw-user fw-stack-1x"></i>
@ -23,8 +24,10 @@
</span> </span>
<span class="hidden-xs hidden-on-grid-view">Edit</span> <span class="hidden-xs hidden-on-grid-view">Edit</span>
</a> </a>
<a onclick="javascript:loadRoleBasedActionURL('edit-permission', '{{roleName}}')" data-role="{{roleName}}" <a onclick="javascript:loadRoleBasedActionURL('edit-permission', '{{roleName}}')"
data-click-event="edit-form" class="btn padding-reduce-on-grid-view edit-permission-link"> data-role="{{roleName}}"
data-click-event="edit-form" class="btn padding-reduce-on-grid-view edit-permission-link"
title="Edit Role Permissions">
<span class="fw-stack fw-lg"> <span class="fw-stack fw-lg">
<i class="fw fw-ring fw-stack-2x"></i> <i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-security-policy fw-stack-1x"></i> <i class="fw fw-security-policy fw-stack-1x"></i>
@ -38,7 +41,8 @@
</a> </a>
{{/if}} {{/if}}
{{#if canRemove}} {{#if canRemove}}
<a data-role="{{roleName}}" data-click-event="remove-form" class="btn padding-reduce-on-grid-view remove-role-link"> <a data-role="{{roleName}}" data-click-event="remove-form"
class="btn padding-reduce-on-grid-view remove-role-link" title="Remove Role">
<span class="fw-stack"> <span class="fw-stack">
<i class="fw fw-ring fw-stack-2x"></i> <i class="fw fw-ring fw-stack-2x"></i>
<i class="fw fw-delete fw-stack-1x"></i> <i class="fw fw-delete fw-stack-1x"></i>

@ -31,8 +31,8 @@ function inputIsValid(regExp, inputString) {
/* /*
* Fix for the modal popup overlay disappear bug * Fix for the modal popup overlay disappear bug
*/ */
$('.modal').on('hidden.bs.modal',function(){ $('.modal').on('hidden.bs.modal', function () {
if($('.modal-backdrop').length == 2){ if ($('.modal-backdrop').length == 2) {
$('.modal-backdrop')[0].remove() $('.modal-backdrop')[0].remove()
} }
}); });
@ -92,7 +92,8 @@ $(document).ready(function () {
$(errorMsg).text("Your current password does not match with the provided value."); $(errorMsg).text("Your current password does not match with the provided value.");
$(errorMsgWrapper).removeClass("hidden"); $(errorMsgWrapper).removeClass("hidden");
} else { } else {
$(errorMsg).text("An unexpected error occurred. Please try again later."); var response = JSON.parse(jqXHR.responseText).message;
$(errorMsg).text(response);
$(errorMsgWrapper).removeClass("hidden"); $(errorMsgWrapper).removeClass("hidden");
} }
} }

Loading…
Cancel
Save