mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 17:08:31 +01:00
Removed debounced autobake & stop disabling input
This commit is contained in:
parent
50784f2600
commit
6122e33f4f
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue