FEATURE: add permissions into widgets and fix few bugs

This commit is contained in:
Michal Kváček
2017-08-24 01:54:58 +02:00
parent e0f5cba9a4
commit b35149ad67
23 changed files with 239 additions and 110 deletions
+9
View File
@@ -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);
}
});