main,js disable
This commit is contained in:
parent
855fb76d7e
commit
8069d5b81d
@ -16,6 +16,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
// Button & Pagination Waves effect
|
// Button & Pagination Waves effect
|
||||||
|
/*
|
||||||
if (typeof Waves !== 'undefined') {
|
if (typeof Waves !== 'undefined') {
|
||||||
Waves.init();
|
Waves.init();
|
||||||
Waves.attach(
|
Waves.attach(
|
||||||
@ -57,6 +58,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
window.Helpers.initCustomOptionCheck();
|
window.Helpers.initCustomOptionCheck();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
*/
|
||||||
|
|
||||||
// Initialize menu
|
// Initialize menu
|
||||||
//-----------------
|
//-----------------
|
||||||
@ -102,6 +104,8 @@ if (document.getElementById('layout-menu')) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
// Menu swipe gesture
|
// Menu swipe gesture
|
||||||
|
|
||||||
// Detect swipe gesture on the target element and call swipe In
|
// Detect swipe gesture on the target element and call swipe In
|
||||||
@ -126,7 +130,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// Update light/dark image based on current style
|
// Update light/dark image based on current style
|
||||||
function switchImage(style) {
|
function switchImage(style) {
|
||||||
if (style === 'system') {
|
if (style === 'system') {
|
||||||
@ -202,7 +206,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
}
|
}
|
||||||
// Run switchImage function based on the stored style
|
// Run switchImage function based on the stored style
|
||||||
switchImage(storedStyle);
|
switchImage(storedStyle);
|
||||||
|
/*
|
||||||
let languageDropdown = document.getElementsByClassName('dropdown-language');
|
let languageDropdown = document.getElementsByClassName('dropdown-language');
|
||||||
|
|
||||||
if (languageDropdown.length) {
|
if (languageDropdown.length) {
|
||||||
@ -239,9 +243,11 @@ if (document.getElementById('layout-menu')) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
*/
|
||||||
|
|
||||||
// Notification
|
// Notification
|
||||||
// ------------
|
// ------------
|
||||||
|
/*
|
||||||
const notificationMarkAsReadAll = document.querySelector('.dropdown-notifications-all');
|
const notificationMarkAsReadAll = document.querySelector('.dropdown-notifications-all');
|
||||||
const notificationMarkAsReadList = document.querySelectorAll('.dropdown-notifications-read');
|
const notificationMarkAsReadList = document.querySelectorAll('.dropdown-notifications-read');
|
||||||
|
|
||||||
@ -269,7 +275,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
item.closest('.dropdown-notifications-item').remove();
|
item.closest('.dropdown-notifications-item').remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
// Init helpers & misc
|
// Init helpers & misc
|
||||||
// --------------------
|
// --------------------
|
||||||
|
|
||||||
@ -279,6 +285,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
return new bootstrap.Tooltip(tooltipTriggerEl);
|
return new bootstrap.Tooltip(tooltipTriggerEl);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
// Accordion active class
|
// Accordion active class
|
||||||
const accordionActiveFunction = function (e) {
|
const accordionActiveFunction = function (e) {
|
||||||
if (e.type == 'show.bs.collapse' || e.type == 'show.bs.collapse') {
|
if (e.type == 'show.bs.collapse' || e.type == 'show.bs.collapse') {
|
||||||
@ -300,13 +307,14 @@ if (document.getElementById('layout-menu')) {
|
|||||||
// if (isRtl) {
|
// if (isRtl) {
|
||||||
// Helpers._addClass('dropdown-menu-end', document.querySelectorAll('#layout-navbar .dropdown-menu'));
|
// Helpers._addClass('dropdown-menu-end', document.querySelectorAll('#layout-navbar .dropdown-menu'));
|
||||||
// }
|
// }
|
||||||
|
*/
|
||||||
|
|
||||||
// Auto update layout based on screen size
|
// Auto update layout based on screen size
|
||||||
window.Helpers.setAutoUpdate(true);
|
window.Helpers.setAutoUpdate(true);
|
||||||
|
|
||||||
// Toggle Password Visibility
|
// Toggle Password Visibility
|
||||||
window.Helpers.initPasswordToggle();
|
window.Helpers.initPasswordToggle();
|
||||||
|
/*
|
||||||
// Speech To Text
|
// Speech To Text
|
||||||
window.Helpers.initSpeechToText();
|
window.Helpers.initSpeechToText();
|
||||||
|
|
||||||
@ -316,6 +324,8 @@ if (document.getElementById('layout-menu')) {
|
|||||||
// Init PerfectScrollbar in Navbar Dropdown (i.e notification)
|
// Init PerfectScrollbar in Navbar Dropdown (i.e notification)
|
||||||
window.Helpers.initNavbarDropdownScrollbar();
|
window.Helpers.initNavbarDropdownScrollbar();
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
let horizontalMenuTemplate = document.querySelector("[data-template^='horizontal-menu']");
|
let horizontalMenuTemplate = document.querySelector("[data-template^='horizontal-menu']");
|
||||||
if (horizontalMenuTemplate) {
|
if (horizontalMenuTemplate) {
|
||||||
// if screen size is small then set navbar fixed
|
// if screen size is small then set navbar fixed
|
||||||
@ -402,6 +412,7 @@ if (document.getElementById('layout-menu')) {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
// ! Removed following code if you do't wish to use jQuery. Remember that navbar search functionality will stop working on removal.
|
// ! Removed following code if you do't wish to use jQuery. Remember that navbar search functionality will stop working on removal.
|
||||||
|
/*
|
||||||
if (typeof $ !== 'undefined') {
|
if (typeof $ !== 'undefined') {
|
||||||
$(function () {
|
$(function () {
|
||||||
// ! TODO: Required to load after DOM is ready, did this now with jQuery ready.
|
// ! TODO: Required to load after DOM is ready, did this now with jQuery ready.
|
||||||
@ -660,3 +671,4 @@ if (typeof $ !== 'undefined') {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user