source: resources/assets/js/app.min.js@ 194a359

develop
Last change on this file since 194a359 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: 27.6 KB
Line 
1/******/ (function(modules) { // webpackBootstrap
2/******/ // The module cache
3/******/ var installedModules = {};
4/******/
5/******/ // The require function
6/******/ function __webpack_require__(moduleId) {
7/******/
8/******/ // Check if module is in cache
9/******/ if(installedModules[moduleId]) {
10/******/ return installedModules[moduleId].exports;
11/******/ }
12/******/ // Create a new module (and put it into the cache)
13/******/ var module = installedModules[moduleId] = {
14/******/ i: moduleId,
15/******/ l: false,
16/******/ exports: {}
17/******/ };
18/******/
19/******/ // Execute the module function
20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ // Flag the module as loaded
23/******/ module.l = true;
24/******/
25/******/ // Return the exports of the module
26/******/ return module.exports;
27/******/ }
28/******/
29/******/
30/******/ // expose the modules object (__webpack_modules__)
31/******/ __webpack_require__.m = modules;
32/******/
33/******/ // expose the module cache
34/******/ __webpack_require__.c = installedModules;
35/******/
36/******/ // define getter function for harmony exports
37/******/ __webpack_require__.d = function(exports, name, getter) {
38/******/ if(!__webpack_require__.o(exports, name)) {
39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40/******/ }
41/******/ };
42/******/
43/******/ // define __esModule on exports
44/******/ __webpack_require__.r = function(exports) {
45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47/******/ }
48/******/ Object.defineProperty(exports, '__esModule', { value: true });
49/******/ };
50/******/
51/******/ // create a fake namespace object
52/******/ // mode & 1: value is a module id, require it
53/******/ // mode & 2: merge all properties of value into the ns
54/******/ // mode & 4: return value when already ns object
55/******/ // mode & 8|1: behave like require
56/******/ __webpack_require__.t = function(value, mode) {
57/******/ if(mode & 1) value = __webpack_require__(value);
58/******/ if(mode & 8) return value;
59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60/******/ var ns = Object.create(null);
61/******/ __webpack_require__.r(ns);
62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64/******/ return ns;
65/******/ };
66/******/
67/******/ // getDefaultExport function for compatibility with non-harmony modules
68/******/ __webpack_require__.n = function(module) {
69/******/ var getter = module && module.__esModule ?
70/******/ function getDefault() { return module['default']; } :
71/******/ function getModuleExports() { return module; };
72/******/ __webpack_require__.d(getter, 'a', getter);
73/******/ return getter;
74/******/ };
75/******/
76/******/ // Object.prototype.hasOwnProperty.call
77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78/******/
79/******/ // __webpack_public_path__
80/******/ __webpack_require__.p = "/";
81/******/
82/******/
83/******/ // Load entry module and return exports
84/******/ return __webpack_require__(__webpack_require__.s = 0);
85/******/ })
86/************************************************************************/
87/******/ ({
88
89/***/ "./public/assets/sass/app.scss":
90/*!*************************************!*\
91 !*** ./public/assets/sass/app.scss ***!
92 \*************************************/
93/*! no static exports found */
94/***/ (function(module, exports) {
95
96// removed by extract-text-webpack-plugin
97
98/***/ }),
99
100/***/ "./resources/js/app.js":
101/*!*****************************!*\
102 !*** ./resources/js/app.js ***!
103 \*****************************/
104/*! no static exports found */
105/***/ (function(module, exports, __webpack_require__) {
106
107"use strict";
108
109
110(function ($) {
111 var wind_ = $(window),
112 body_ = $('body');
113 feather.replace({
114 'stroke-width': 1.5
115 });
116 $(document).on('click', '[data-toggle="fullscreen"]', function () {
117 $(this).toggleClass('active-fullscreen');
118
119 if (document.fullscreenEnabled) {
120 if ($(this).hasClass("active-fullscreen")) {
121 document.documentElement.requestFullscreen();
122 } else {
123 document.exitFullscreen();
124 }
125 } else {
126 alert("Your browser does not support fullscreen.");
127 }
128
129 return false;
130 });
131 $(document).on('click', '.overlay', function () {
132 $.removeOverlay();
133
134 if (body_.hasClass('horizontal-navigation')) {
135 $('.horizontal-navigation').removeClass('open');
136 } else {
137 $('.navigation').removeClass('open');
138 }
139
140 body_.removeClass('navigation-show');
141 });
142 $(document).on('click', '[data-sidebar-target]', function () {
143 var target = $(this).data('sidebar-target');
144 $('body').addClass('no-scroll');
145 $('.sidebar-group').addClass('show');
146 $('.sidebar-group .sidebar').removeClass('show');
147 $('.sidebar-group .sidebar' + target).addClass('show');
148 return false;
149 });
150 $(document).on('click', '.sidebar-group', function (e) {
151 if ($(e.target).is($('.sidebar-group'))) {
152 $('.sidebar-group').removeClass('show');
153 $('body').removeClass('no-scroll');
154 $('.sidebar-group .sidebar').removeClass('show');
155 }
156 }); // Active pages, automatically show on the menu
157
158 $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
159 $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
160 $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
161 $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
162 /*------------- create/remove overlay -------------*/
163
164 $.createOverlay = function () {
165 if ($('.overlay').length < 1) {
166 body_.addClass('no-scroll').append('<div class="overlay"></div>');
167 $('.overlay').addClass('show');
168 }
169 };
170
171 $.removeOverlay = function () {
172 body_.removeClass('no-scroll');
173 $('.overlay').remove();
174 };
175 /*------------- create/remove overlay -------------*/
176
177
178 $('[data-backround-image]').each(function (e) {
179 $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
180 });
181 /*------------- page loader -------------*/
182
183 wind_.on('load', function () {
184 $('.preloader').fadeOut(400, function () {
185 setTimeout(function () {
186 toastr.options = {
187 timeOut: 2000,
188 progressBar: true,
189 showMethod: "slideDown",
190 hideMethod: "slideUp",
191 showDuration: 200,
192 hideDuration: 200,
193 positionClass: "toast-top-center"
194 };
195 $('.theme-switcher').removeClass('open');
196 }, 500); // $('.theme-switcher').css('opacity', 1);
197 });
198 });
199 /*------------- page loader -------------*/
200
201 /*------------- side menu (sub menü arrow) -------------*/
202
203 wind_.on('load', function () {
204 setTimeout(function () {
205 $('.navigation .navigation-menu-body ul li a').each(function () {
206 var $this = $(this);
207
208 if ($this.next('ul').length) {
209 $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
210 }
211 });
212 $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
213 $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
214 var $this = $(this);
215
216 if ($this.next('ul').length) {
217 $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
218 }
219 });
220 }, 200);
221 });
222 /*------------- side menu (sub menü arrow) -------------*/
223
224 $(document).on('click', '[data-action="navigation-toggler"]', function () {
225 if (body_.hasClass('horizontal-navigation')) {
226 $('.horizontal-navigation').toggleClass('open');
227 } else {
228 $('.navigation').toggleClass('open');
229 }
230
231 $.createOverlay();
232 });
233 $(document).on('click', '[data-nav-target]', function () {
234 var $this = $(this),
235 target = $this.data('nav-target');
236
237 if (body_.hasClass('navigation-toggle-one')) {
238 body_.addClass('navigation-show');
239 }
240
241 if (body_.hasClass('horizontal-navigation')) {
242 $('.navigation .navigation-menu-body').show();
243 }
244
245 $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
246 $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
247 $('[data-nav-target]').removeClass('active');
248 $this.addClass('active');
249 $this.tooltip('hide');
250 return false;
251 });
252 var c = $('.header .header-left .header-logo').clone();
253 $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
254 $(document).on('click', '.navigation-toggler a', function () {
255 if (wind_.width() < 1200) {
256 $.createOverlay();
257 body_.addClass('navigation-show');
258 } else {
259 if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
260 body_.addClass('navigation-toggle-one');
261 } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
262 body_.addClass('navigation-toggle-two');
263 body_.removeClass('navigation-toggle-one');
264 } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
265 body_.removeClass('navigation-toggle-two');
266 body_.removeClass('navigation-toggle-one');
267 }
268 }
269
270 return false;
271 });
272 $(document).on('click', '.header-toggler a', function () {
273 $('.header ul.navbar-nav').toggleClass('open');
274 return false;
275 });
276 $(document).on('click', '*', function (e) {
277 if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
278 body_.removeClass('navigation-show');
279 }
280 });
281 $(document).on('click', '*', function (e) {
282 if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
283 $('.header ul.navbar-nav').removeClass('open');
284 }
285 });
286 /*------------- form validation -------------*/
287
288 window.addEventListener('load', function () {
289 // Fetch all the forms we want to apply custom Bootstrap validation styles to
290 var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
291
292 Array.prototype.filter.call(forms, function (form) {
293 form.addEventListener('submit', function (event) {
294 if (form.checkValidity() === false) {
295 event.preventDefault();
296 event.stopPropagation();
297 }
298
299 form.classList.add('was-validated');
300 }, false);
301 });
302 }, false);
303 /*------------- form validation -------------*/
304
305 /*------------- responsive html table -------------*/
306
307 var table_responsive_stack = $(".table-responsive-stack");
308 table_responsive_stack.find("th").each(function (i) {
309 $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
310 $(".table-responsive-stack-thead").hide();
311 });
312 table_responsive_stack.each(function () {
313 var thCount = $(this).find("th").length,
314 rowGrow = 100 / thCount + "%";
315 $(this).find("th, td").css("flex-basis", rowGrow);
316 });
317
318 function flexTable() {
319 if (wind_.width() < 768) {
320 $(".table-responsive-stack").each(function (i) {
321 $(this).find(".table-responsive-stack-thead").show();
322 $(this).find("thead").hide();
323 }); // window is less than 768px
324 } else {
325 $(".table-responsive-stack").each(function (i) {
326 $(this).find(".table-responsive-stack-thead").hide();
327 $(this).find("thead").show();
328 });
329 }
330 }
331
332 flexTable();
333
334 window.onresize = function (event) {
335 flexTable();
336 };
337 /*------------- responsive html table -------------*/
338
339 /*------------- header search -------------*/
340
341
342 $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
343 $('.header .header-body .header-search').show().find('.form-control').focus();
344 return false;
345 });
346 $(document).on('click', '.close-header-search, .close-header-search svg', function () {
347 $('.header .header-body .header-search').hide();
348 return false;
349 });
350 $(document).on('click', '*', function (e) {
351 if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
352 $('.header .header-body .header-search').hide();
353 }
354 });
355 /*------------- header search -------------*/
356
357 /*------------- custom accordion -------------*/
358
359 $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
360 var $this = $(this);
361 $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
362 $this.parent('.accordion-row').toggleClass('open');
363 return false;
364 });
365 /*------------- custom accordion -------------*/
366
367 /*------------- responsive table dropdown -------------*/
368
369 var dropdownMenu,
370 table_responsive = $('.table-responsive');
371 table_responsive.on('show.bs.dropdown', function (e) {
372 dropdownMenu = $(e.target).find('.dropdown-menu');
373 body_.append(dropdownMenu.detach());
374 var eOffset = $(e.target).offset();
375 dropdownMenu.css({
376 'display': 'block',
377 'top': eOffset.top + $(e.target).outerHeight(),
378 'left': eOffset.left,
379 'width': '184px',
380 'font-size': '14px'
381 });
382 dropdownMenu.addClass("mobPosDropdown");
383 });
384 table_responsive.on('hide.bs.dropdown', function (e) {
385 $(e.target).append(dropdownMenu.detach());
386 dropdownMenu.hide();
387 });
388 /*------------- responsive table dropdown -------------*/
389
390 /*------------- chat -------------*/
391
392 $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
393 $('.chat-block .chat-content').addClass('chat-mobile-open');
394 return false;
395 });
396 $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
397 $('.chat-block .chat-content').removeClass('chat-mobile-open');
398 return false;
399 });
400 /*------------- chat -------------*/
401
402 /*------------- aside menu toggle -------------*/
403
404 $(document).on('click', '.navigation ul li a', function () {
405 var $this = $(this);
406
407 if ($this.next('ul').length) {
408 var sub_menu_arrow = $this.find('.sub-menu-arrow');
409 sub_menu_arrow.toggleClass('rotate-in');
410 $this.next('ul').toggle(200);
411 $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
412 $this.next('ul').find('li ul').slideUp(200);
413 $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
414 $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
415 $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
416 $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
417
418 if (sub_menu_arrow.hasClass('rotate-in')) {
419 setTimeout(function () {
420 sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
421 }, 200);
422 } else {
423 sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
424 }
425
426 if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
427 setTimeout(function (e) {
428 $('.navigation .navigation-menu-body').getNiceScroll().resize();
429 }, 300);
430 }
431
432 return false;
433 }
434 });
435 $(document).on('click', '.horizontal-navigation ul li a', function () {
436 var $this = $(this);
437
438 if ($this.next('ul').length) {
439 $this.next('ul').toggle(200);
440 $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
441 $this.next('ul').find('li ul').slideUp(200);
442 return false;
443 }
444 });
445 /*------------- aside menu toggle -------------*/
446
447 /*------------- other -------------*/
448
449 $(document).on('click', '.dropdown-menu', function (e) {
450 e.stopPropagation();
451 });
452 $('#exampleModal').on('show.bs.modal', function (event) {
453 var button = $(event.relatedTarget),
454 recipient = button.data('whatever'),
455 modal = $(this);
456 modal.find('.modal-title').text('New message to ' + recipient);
457 modal.find('.modal-body input').val(recipient);
458 });
459 $('[data-toggle="tooltip"]').tooltip({
460 container: 'body'
461 });
462 $('[data-toggle="popover"]').popover();
463 $('.carousel').carousel();
464
465 if (wind_.width() >= 992) {
466 $('.card-scroll').niceScroll();
467 $('.table-responsive').niceScroll();
468 $('.sidebar-group .sidebar').niceScroll();
469 $('.app-block .app-content .app-lists').niceScroll();
470 $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
471 $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
472 var chat_messages = $('.chat-block .chat-content .messages');
473
474 if (chat_messages.length) {
475 chat_messages.niceScroll({
476 horizrailenabled: false
477 });
478 chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
479 }
480 }
481
482 if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
483 $('.navigation .navigation-menu-body').niceScroll();
484 }
485
486 $('.dropdown-menu ul.list-group').niceScroll();
487 /* Theme Switcher */
488
489 /* var path = window.location.pathname;
490 var page = path.split("/").pop();
491 var theme_switcher_html = '<div class="theme-switcher open"> \n\
492 <div class="theme-switcher-button"> \n\
493 <i class="fa fa-cog"></i> \n\
494 </div> \n\
495 <div class="theme-switcher-panel"> \n\
496 <div class="card"> \n\
497 <div class="card-body"> \n\
498 <h6 class="card-title">Theme Switcher</h6> \n\
499 <div class="form-group mb-2"> \n\
500 <div class="custom-control custom-switch"> \n\
501 <input type="checkbox" class="custom-control-input" id="dark"> \n\
502 <label class="custom-control-label" for="dark">Dark</label> \n\
503 </div> \n\
504 </div> \n\
505 <div class="form-group mb-2"> \n\
506 <div class="custom-control custom-switch"> \n\
507 <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
508 <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
509 </div> \n\
510 </div> \n\
511 <div class="form-group mb-2"> \n\
512 <div class="custom-control custom-switch"> \n\
513 <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
514 <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
515 </div> \n\
516 </div> \n\
517 <div class="form-group mb-2"> \n\
518 <div class="custom-control custom-switch"> \n\
519 <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
520 <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
521 </div> \n\
522 </div> \n\
523 <div class="form-group mb-2"> \n\
524 <div class="custom-control custom-switch"> \n\
525 <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
526 <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
527 </div> \n\
528 </div> \n\
529 <div class="form-group mb-2"> \n\
530 <div class="custom-control custom-switch"> \n\
531 <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
532 <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
533 </div> \n\
534 </div> \n\
535 <div class="form-group mb-2"> \n\
536 <div class="custom-control custom-switch"> \n\
537 <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
538 <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
539 </div> \n\
540 </div> \n\
541 <div class="form-group mb-2"> \n\
542 <div class="custom-control custom-switch"> \n\
543 <input type="checkbox" class="custom-control-input" id="light-header"> \n\
544 <label class="custom-control-label" for="light-header">Light header</label> \n\
545 </div> \n\
546 </div> \n\
547 <div class="form-group mb-2"> \n\
548 <div class="custom-control custom-switch"> \n\
549 <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
550 <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
551 </div> \n\
552 </div> \n\
553 </div> \n\
554 </div> \n\
555 </div> \n\
556 </div>';
557 $('body').append(theme_switcher_html);
558 $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
559 var id = $(this).attr('id');
560 if (id === 'sticky-navigation') {
561 if ($(this).prop('checked')) {
562 $('.navigation').niceScroll().resize();
563 } else {
564 $('.navigation').niceScroll().remove();
565 }
566 if ($('body').hasClass('small-navigation')) {
567 $('.navigation .navigation-menu-body > ul > li').each(function () {
568 if ($(this).find('> a').next('ul').length) {
569 // Dropdown add header title
570 $(this).find('.dropdown-divider').remove();
571 } else {
572 // Add tooltip
573 $(this).find('> a').tooltip('dispose');
574 }
575 });
576 $('body').removeClass('small-navigation');
577 $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
578 }
579 if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
580 $('body').removeClass('hidden-navigation');
581 $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
582 }
583 }
584 if (id === 'small-navigation') {
585 if ($(this).prop('checked')) {
586 $('.navigation .navigation-menu-body > ul > li').each(function () {
587 if ($(this).find('> a').next('ul').length) {
588 // Dropdown add header title
589 $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
590 } else {
591 // Add tooltip
592 $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
593 $(this).find('> a').tooltip({
594 placement: "right"
595 });
596 }
597 });
598 } else {
599 $('.navigation .navigation-menu-body > ul > li').each(function () {
600 if ($(this).find('> a').next('ul').length) {
601 // Dropdown add header title
602 $(this).find('.dropdown-divider').remove();
603 } else {
604 // Add tooltip
605 $(this).find('> a').tooltip('dispose');
606 }
607 });
608 }
609 if ($('body').hasClass('sticky-navigation')) {
610 $('body').removeClass('sticky-navigation');
611 $('.navigation').niceScroll().remove();
612 $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
613 }
614 if ($('body').hasClass('hidden-navigation')) {
615 $('body').removeClass('hidden-navigation');
616 $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
617 }
618 }
619 if (id === 'hidden-navigation') {
620 setTimeout(function () {
621 $('.navigation').niceScroll().resize();
622 $('.app-block .app-content .app-lists').niceScroll().resize();
623 $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
624 $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
625 }, 200);
626 if (!$(this).prop('checked')) {
627 $.removeOverlay();
628 $('.navigation').removeClass('open');
629 }
630 if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
631 if ($('body').hasClass('sticky-navigation')) {
632 $('body').removeClass('sticky-navigation');
633 $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
634 }
635 }
636 if ($('body').hasClass('small-navigation')) {
637 $('.navigation .navigation-menu-body > ul > li').each(function () {
638 if ($(this).find('> a').next('ul').length) {
639 // Dropdown add header title
640 $(this).find('.dropdown-divider').remove();
641 } else {
642 // Add tooltip
643 $(this).find('> a').tooltip('dispose');
644 }
645 });
646 $('body').removeClass('small-navigation');
647 $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
648 }
649 }
650 if (id === 'dark') {
651 if ($('body').hasClass('semi-dark')) {
652 $('body').removeClass('semi-dark');
653 $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
654 }
655 }
656 if (id === 'semi-dark') {
657 if ($('body').hasClass('dark')) {
658 $('body').removeClass('dark');
659 $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
660 }
661 }
662 $('body').toggleClass(id);
663 });
664 $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
665 $('.theme-switcher').toggleClass('open');
666 }); */
667})(jQuery);
668
669/***/ }),
670
671/***/ 0:
672/*!*****************************************************************!*\
673 !*** multi ./resources/js/app.js ./public/assets/sass/app.scss ***!
674 \*****************************************************************/
675/*! no static exports found */
676/***/ (function(module, exports, __webpack_require__) {
677
678__webpack_require__(/**/"./resources/js/app.js");
679module.exports = __webpack_require__(/**/"./public/assets/sass/app.scss");
680
681
682/***/ })
683
684/******/ });
Note: See TracBrowser for help on using the repository browser.