Fix-motor-stop (#3379)

master
Mark Haslinghuis 2023-03-14 22:01:24 +01:00 committed by GitHub
parent 6cbbaff240
commit 9705c1e040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ Features.prototype.generateElements = function (featuresElements) {
if (listElements.length === 0) {
newElements.push($('<option class="feature" value="-1" i18n="featureNone" />'));
}
const newElement = $(`<option class="feature" id="feature${i}" name="${rawFeatureName}" value="${featureBit}" i18n="feature${rawFeatureName}" />`);
const newElement = $(`<option class="feature" id="feature${featureBit - 1}" name="${rawFeatureName}" value="${featureBit}" i18n="feature${rawFeatureName}" />`);
newElements.push(newElement);
listElements.push(newElement);
@ -134,7 +134,7 @@ Features.prototype.generateElements = function (featuresElements) {
featureName = `<td><div>${rawFeatureName}</div></td>`;
}
let element = `<tr><td><input class="feature toggle" id="feature${i}"`;
let element = `<tr><td><input class="feature toggle" id="feature${featureBit - 1}"`;
element += `name="${self._features[i].name}" title="${self._features[i].name}"`;
element += `type="checkbox"/></td><td><div>${featureName}</div>`;
element += `<span class="xs" i18n="feature${self._features[i].name}"></span></td>`;