FEATURE #2048: prepare routes for ACL, add some more permissions
This commit is contained in:
@@ -317,23 +317,6 @@ $ (function () {
|
||||
|
||||
});
|
||||
|
||||
$ (function () {
|
||||
|
||||
$ ("body").addClass ("loaded");
|
||||
|
||||
var notification = $ ('.notification');
|
||||
if (notification.length) {
|
||||
|
||||
notification.click (function () {
|
||||
$ (this).fadeOut ('fast');
|
||||
});
|
||||
|
||||
setTimeout (function () {
|
||||
notification.fadeOut (1500)
|
||||
}, 5 * 1000)
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Makes slug from input string
|
||||
*
|
||||
@@ -370,6 +353,21 @@ function slugify(text, trimSpaces) {
|
||||
|
||||
// bind some custom methods
|
||||
$ (document).ready (function () {
|
||||
|
||||
$ ("body").addClass ("loaded");
|
||||
|
||||
var notification = $ ('.notification');
|
||||
if (notification.length) {
|
||||
|
||||
notification.click (function () {
|
||||
$ (this).fadeOut ('fast');
|
||||
});
|
||||
|
||||
setTimeout (function () {
|
||||
notification.fadeOut (1500)
|
||||
}, 5 * 1000)
|
||||
}
|
||||
|
||||
var previousTitle, previousMessage;
|
||||
|
||||
$ ('.confirm').click (function (e) {
|
||||
@@ -439,3 +437,11 @@ $ (document).ready (function () {
|
||||
|
||||
$('form').areYouSure();
|
||||
});
|
||||
|
||||
$('.checkbox').change(function() {
|
||||
var e = $(this);
|
||||
var checked = e.is(':checked');
|
||||
var id = e.data('id');
|
||||
|
||||
$('.child-'+id).prop('checked', checked);
|
||||
});
|
||||
Reference in New Issue
Block a user