mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2024-12-18 04:00:47 +01:00
rename disableinput function
This commit is contained in:
parent
d0f2b3b74c
commit
991a54976a
@ -4,7 +4,7 @@ var dashboardOverlay = document.getElementById("dashboardOverlay");
|
|||||||
let rightDashboardVisibility = false;
|
let rightDashboardVisibility = false;
|
||||||
|
|
||||||
// Disable/Enable inputs
|
// Disable/Enable inputs
|
||||||
var disableAllInputs = (status) => {
|
var disableDashboardInputs = (status) => {
|
||||||
var elems = dashboard.getElementsByTagName('input');
|
var elems = dashboard.getElementsByTagName('input');
|
||||||
var len = elems.length;
|
var len = elems.length;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ const showDashboard = () => {
|
|||||||
dashboardOverlay.classList.add('showDashboardOverlay');
|
dashboardOverlay.classList.add('showDashboardOverlay');
|
||||||
|
|
||||||
// Enable Inputs
|
// Enable Inputs
|
||||||
disableAllInputs(false);
|
disableDashboardInputs(false);
|
||||||
|
|
||||||
rightDashboardVisibility = !rightDashboardVisibility;
|
rightDashboardVisibility = !rightDashboardVisibility;
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ const hideDashboard = () => {
|
|||||||
dashboard.scrollTop = 0;
|
dashboard.scrollTop = 0;
|
||||||
|
|
||||||
// Disable Inputs
|
// Disable Inputs
|
||||||
disableAllInputs(true);
|
disableDashboardInputs(true);
|
||||||
|
|
||||||
// Hide overlay
|
// Hide overlay
|
||||||
dashboardOverlay.classList.remove('showDashboardOverlay');
|
dashboardOverlay.classList.remove('showDashboardOverlay');
|
||||||
@ -93,4 +93,4 @@ dashboardOverlay.addEventListener(
|
|||||||
|
|
||||||
|
|
||||||
// Disable dashboard inputs on startup
|
// Disable dashboard inputs on startup
|
||||||
window.onload = disableAllInputs(true);
|
window.onload = disableDashboardInputs(true);
|
@ -9,7 +9,7 @@ let webItemFocus;
|
|||||||
let webListIndex = 0;
|
let webListIndex = 0;
|
||||||
|
|
||||||
// Disable/Enable inputs
|
// Disable/Enable inputs
|
||||||
var disableAllInputs = (status) => {
|
var disableWebMenuInputs = (status) => {
|
||||||
var elems = webMenu.getElementsByTagName('input');
|
var elems = webMenu.getElementsByTagName('input');
|
||||||
var len = elems.length;
|
var len = elems.length;
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ const showWebMenu = () => {
|
|||||||
webMenu.classList.add('showWebMenu');
|
webMenu.classList.add('showWebMenu');
|
||||||
|
|
||||||
// Enable inputs
|
// Enable inputs
|
||||||
disableAllInputs(false);
|
disableWebMenuInputs(false);
|
||||||
|
|
||||||
webMenuVisibility = !webMenuVisibility;
|
webMenuVisibility = !webMenuVisibility;
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ const hideWebMenu = () => {
|
|||||||
webMenu.classList.remove('showWebMenu');
|
webMenu.classList.remove('showWebMenu');
|
||||||
|
|
||||||
// Disable inputs
|
// Disable inputs
|
||||||
disableAllInputs(true);
|
disableWebMenuInputs(true);
|
||||||
|
|
||||||
webMenuVisibility = !webMenuVisibility;
|
webMenuVisibility = !webMenuVisibility;
|
||||||
}
|
}
|
||||||
@ -367,7 +367,7 @@ const initWebMenu = () => {
|
|||||||
getFirstItem();
|
getFirstItem();
|
||||||
|
|
||||||
// Disable inputs
|
// Disable inputs
|
||||||
disableAllInputs(true);
|
disableWebMenuInputs(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize web menu
|
// Initialize web menu
|
||||||
|
Loading…
Reference in New Issue
Block a user