FEATURE: add permissions into widgets and fix few bugs
This commit is contained in:
@@ -392,12 +392,15 @@ $ (document).ready (function () {
|
||||
|
||||
$ ('#confirm-modal').modal ('show');
|
||||
|
||||
$('.main-wrapper').addClass('blur');
|
||||
|
||||
e.preventDefault ();
|
||||
});
|
||||
|
||||
$ ('#confirm-modal').on ('hidden.bs.modal', function () {
|
||||
$ ('#confirmation-title').text (previousTitle);
|
||||
$ ('#confirmation-message').text (previousMessage);
|
||||
$('.main-wrapper').removeClass('blur');
|
||||
});
|
||||
|
||||
$ ('#lockUrl').change (function () {
|
||||
@@ -444,4 +447,10 @@ $('.checkbox').change(function() {
|
||||
var id = e.data('id');
|
||||
|
||||
$('.child-'+id).prop('checked', checked);
|
||||
|
||||
// check also parent
|
||||
if (e.hasClass('child-checkbox') && checked){
|
||||
var parent = e.data('parent');
|
||||
$('#checkbox-parent-'+parent).prop('checked', true);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user