rename disableinput function

This commit is contained in:
Gerome Matilla 2020-06-06 19:05:39 +08:00
parent d0f2b3b74c
commit 991a54976a
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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