mirror of
https://github.com/manilarome/the-glorious-startpage.git
synced 2024-12-17 19:50:46 +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;
|
||||
|
||||
// Disable/Enable inputs
|
||||
var disableAllInputs = (status) => {
|
||||
var disableDashboardInputs = (status) => {
|
||||
var elems = dashboard.getElementsByTagName('input');
|
||||
var len = elems.length;
|
||||
|
||||
@ -20,7 +20,7 @@ const showDashboard = () => {
|
||||
dashboardOverlay.classList.add('showDashboardOverlay');
|
||||
|
||||
// Enable Inputs
|
||||
disableAllInputs(false);
|
||||
disableDashboardInputs(false);
|
||||
|
||||
rightDashboardVisibility = !rightDashboardVisibility;
|
||||
}
|
||||
@ -30,7 +30,7 @@ const hideDashboard = () => {
|
||||
dashboard.scrollTop = 0;
|
||||
|
||||
// Disable Inputs
|
||||
disableAllInputs(true);
|
||||
disableDashboardInputs(true);
|
||||
|
||||
// Hide overlay
|
||||
dashboardOverlay.classList.remove('showDashboardOverlay');
|
||||
@ -93,4 +93,4 @@ dashboardOverlay.addEventListener(
|
||||
|
||||
|
||||
// Disable dashboard inputs on startup
|
||||
window.onload = disableAllInputs(true);
|
||||
window.onload = disableDashboardInputs(true);
|
@ -9,7 +9,7 @@ let webItemFocus;
|
||||
let webListIndex = 0;
|
||||
|
||||
// Disable/Enable inputs
|
||||
var disableAllInputs = (status) => {
|
||||
var disableWebMenuInputs = (status) => {
|
||||
var elems = webMenu.getElementsByTagName('input');
|
||||
var len = elems.length;
|
||||
|
||||
@ -184,7 +184,7 @@ const showWebMenu = () => {
|
||||
webMenu.classList.add('showWebMenu');
|
||||
|
||||
// Enable inputs
|
||||
disableAllInputs(false);
|
||||
disableWebMenuInputs(false);
|
||||
|
||||
webMenuVisibility = !webMenuVisibility;
|
||||
|
||||
@ -214,7 +214,7 @@ const hideWebMenu = () => {
|
||||
webMenu.classList.remove('showWebMenu');
|
||||
|
||||
// Disable inputs
|
||||
disableAllInputs(true);
|
||||
disableWebMenuInputs(true);
|
||||
|
||||
webMenuVisibility = !webMenuVisibility;
|
||||
}
|
||||
@ -367,7 +367,7 @@ const initWebMenu = () => {
|
||||
getFirstItem();
|
||||
|
||||
// Disable inputs
|
||||
disableAllInputs(true);
|
||||
disableWebMenuInputs(true);
|
||||
}
|
||||
|
||||
// Initialize web menu
|
||||
|
Loading…
Reference in New Issue
Block a user