mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing IOTS-114: the user is unable to deselect a child node permissions
This commit is contained in:
parent
be970bfc9d
commit
bc3f64a77a
@ -61,20 +61,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="child-deselect-error-content" class="hide">
|
|
||||||
<div class="content">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-5 col-md-6 col-centered">
|
|
||||||
<h3>Can't deselect child permissions when parent permission is selected.</h3>
|
|
||||||
<div class="buttons">
|
|
||||||
<a href="#" id="child-deselect-error-link" class="btn-operations">
|
|
||||||
Ok
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /content -->
|
<!-- /content -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -117,12 +117,8 @@ $(document).ready(function () {
|
|||||||
$("#permissionList li input").click(function() {
|
$("#permissionList li input").click(function() {
|
||||||
var parentInput = $(this).parents("ul:eq(1) > li").find('input:eq(0)');
|
var parentInput = $(this).parents("ul:eq(1) > li").find('input:eq(0)');
|
||||||
if(parentInput && parentInput.is(':checked')){
|
if(parentInput && parentInput.is(':checked')){
|
||||||
$(modalPopupContent).html($('#child-deselect-error-content').html());
|
parentInput.prop('checked', false);
|
||||||
showPopup();
|
return true;
|
||||||
$("a#child-deselect-error-link").click(function () {
|
|
||||||
hidePopup();
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('#permissionList').tree_view();
|
$('#permissionList').tree_view();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user