prepost checkbox
This commit is contained in:
parent
9990758806
commit
ec08fdfe31
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user