prepost checkbox

This commit is contained in:
Justin 2023-03-27 17:08:33 +08:00 committed by GitHub
parent 9990758806
commit ec08fdfe31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1208,7 +1208,7 @@ function getTradingSettings(page) {
let symbols_el = page.querySelectorAll(".symbol-list")[0];
let symbols = getListItems(symbols_el);
if ((whatFeature == 1) || (whatFeature == 2)) {
if (whatFeature == 2) {
let portfolio = page.querySelectorAll(".portfolio-select")[0].checked;
settings = {
percent: percent,
@ -1219,6 +1219,19 @@ function getTradingSettings(page) {
chart: portfolio,
};
}
else if (whatFeature == 1) {
let prepost = page.querySelectorAll(".prepost-select")[0].checked;
let portfolio = page.querySelectorAll(".portfolio-select")[0].checked;
settings = {
prepost: prepost,
percent: percent,
point: point,
logos: no_logos,
title: title,
symbols: symbols,
chart: portfolio,
};
}
else {
settings = {
percent: percent,
@ -1228,6 +1241,8 @@ function getTradingSettings(page) {
symbols: symbols,
};
}
console.log(settings);
return settings;
}