Skip to content

Commit ec20a2a

Browse files
authored
Optional Update bdac.js
Optional fixes, fix some values not set correctly in config/bdac.js, Corrected the title of the disabled buttons. New way of how buttons are disabled.
1 parent 078e035 commit ec20a2a

1 file changed

Lines changed: 21 additions & 17 deletions

File tree

config/bdac.js

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
* @type {Array<{key: string, secret: string}>}
44
*/
55
let apiKeys = [
6-
{
7-
key: "",
8-
secret: "",
9-
},
10-
{
11-
key: "",
12-
secret: "",
13-
},
14-
{
15-
key: "",
16-
secret: "",
17-
},
6+
{
7+
key: "",
8+
secret: ""
9+
},
10+
{
11+
key: "",
12+
secret: ""
13+
},
14+
{
15+
key: "",
16+
secret: ""
17+
},
1818
],
1919

2020
/**
@@ -99,8 +99,9 @@ function appraiseDomains() {
9999

100100
if (e.value) {
101101
document.querySelector(".btn-checked").disabled = true;
102-
document.querySelector(".btn-checked").title =
103-
"The button has been deactivated, stop the verification before starting another.";
102+
document.querySelector(".btn-checked").title = "The button has been deactivated, stop the appraisal before starting another.";
103+
document.querySelector(".btn-sort").disabled = true;
104+
document.querySelector(".btn-sort").title = "The button has been deactivated, to reactivate stop the appraisal process.";
104105
domains = e.value.split("\n").map((domain) => {
105106
domain = domain.replace(/\s/g, "");
106107
if (domain.length > 0 && !domain.includes(".")) {
@@ -293,6 +294,8 @@ function checkNextDomain() {
293294
}) => foobar.retry());
294295
document.querySelector(".btn-checked").disabled = false;
295296
document.querySelector(".btn-checked").title = "";
297+
document.querySelector(".btn-sort").disabled = false;
298+
document.querySelector(".btn-sort").title = "";
296299
}
297300
}
298301

@@ -327,8 +330,7 @@ function exportToCSV() {
327330
*/
328331
function sortDomains() {
329332
if (!sortEnabled) {
330-
document.querySelector(".btn-sort").title =
331-
"The button has been deactivated, to reactivate stop the appraisal process.";
333+
document.querySelector(".btn-sort").title = "The button has been deactivated, to reactivate stop the appraisal process.";
332334
return;
333335
}
334336
if (oldInnerHTML) {
@@ -420,6 +422,8 @@ window.addEventListener("click", function(event) {
420422
}, 50);
421423
document.querySelector(".btn-checked").disabled = false;
422424
document.querySelector(".btn-checked").title = "";
425+
document.querySelector(".btn-sort").disabled = false;
426+
document.querySelector(".btn-sort").title = "";
423427
setTimeout(function() {
424428
clearInterval(intervalId);
425429
clearAllTimeouts();
@@ -428,4 +432,4 @@ window.addEventListener("click", function(event) {
428432
}
429433
});
430434

431-
// v1.0.3 Code Version - check https://github.com/short443/BDAC/releases/ for updates.
435+
// v1.0.3.5 Code Version - check https://github.com/short443/BDAC/releases/ for updates.

0 commit comments

Comments
 (0)