From 6122e33f4faf58c8c0ecf24267a60978079ac598 Mon Sep 17 00:00:00 2001 From: toby Date: Wed, 3 May 2017 10:27:13 -0400 Subject: [PATCH] Removed debounced autobake & stop disabling input --- src/web/App.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/web/App.js b/src/web/App.js index de8af4a7..4ab96b05 100755 --- a/src/web/App.js +++ b/src/web/App.js @@ -36,8 +36,6 @@ var App = function(categories, operations, defaultFavourites, defaultOptions) { this.ingId = 0; window.chef = this.chef; - - this.autoBake = Utils.debounce(this.autoBake, 300); }; @@ -80,22 +78,17 @@ App.prototype.setBakingStatus = function(bakingStatus) { var inputLoadingIcon = document.querySelector("#input .title .loading-icon"), outputLoadingIcon = document.querySelector("#output .title .loading-icon"), - inputElement = document.querySelector("#input-text"), outputElement = document.querySelector("#output-text"); if (bakingStatus) { inputLoadingIcon.style.display = "inline-block"; outputLoadingIcon.style.display = "inline-block"; - inputElement.classList.add("disabled"); outputElement.classList.add("disabled"); - inputElement.disabled = true; outputElement.disabled = true; } else { inputLoadingIcon.style.display = "none"; outputLoadingIcon.style.display = "none"; - inputElement.classList.remove("disabled"); outputElement.classList.remove("disabled"); - inputElement.disabled = false; outputElement.disabled = false; } };