source: public/assets/js/examples/pages/calendar.js@ fa80fbe

develop
Last change on this file since fa80fbe was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago

added departments, edited users and added user settings

  • Property mode set to 100644
File size: 1.8 KB
Line 
1$(function () {
2 $(document).on('click', '.app-block .app-content .app-action .action-left input[type="checkbox"]', function () {
3 $('.app-lists ul li input[type="checkbox"]').prop('checked', $(this).prop('checked'));
4 if ($(this).prop('checked')) {
5 $('.app-lists ul li input[type="checkbox"]').closest('li').addClass('active');
6 } else {
7 $('.app-lists ul li input[type="checkbox"]').closest('li').removeClass('active');
8 }
9 });
10
11 $(document).on('click', '.app-lists ul li input[type="checkbox"]', function () {
12 if ($(this).prop('checked')) {
13 $(this).closest('li').addClass('active');
14 } else {
15 $(this).closest('li').removeClass('active');
16 }
17 });
18
19 $(document).on('click', '.app-block .app-content .app-content-body .app-lists ul.list-group li.list-group-item', function (e) {
20 if (!$(e.target).is('.custom-control, .custom-control *, a, a *')) {
21 $('.app-detail').addClass('show').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function () {
22 $('.app-block .app-content .app-content-body .app-detail .app-detail-article').niceScroll().resize();
23 });
24 }
25 });
26
27 $(document).on('click', 'a.app-detail-close-button', function () {
28 $('.app-detail').removeClass('show');
29 return false;
30 });
31
32 $(document).on('click', '.app-sidebar-menu-button', function () {
33 $('.app-block .app-sidebar, .app-content-overlay').addClass('show');
34 // $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
35 return false;
36 });
37
38 $(document).on('click', '.app-content-overlay', function () {
39 $('.app-block .app-sidebar, .app-content-overlay').removeClass('show');
40 return false;
41 });
42});
Note: See TracBrowser for help on using the repository browser.