mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Moved styling into CSS file.
This commit is contained in:
parent
3de7f6e167
commit
e97fd5bef8
2 changed files with 9 additions and 6 deletions
|
@ -115,6 +115,10 @@
|
||||||
color: #818181;
|
color: #818181;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-firmware_flasher .options select option.cached {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-firmware_flasher .cf_table td:last-child {
|
.tab-firmware_flasher .cf_table td:last-child {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
const option_e = $(this);
|
const option_e = $(this);
|
||||||
const optionRelease = option_e.data("summary");
|
const optionRelease = option_e.data("summary");
|
||||||
if (optionRelease && optionRelease.file === release.file) {
|
if (optionRelease && optionRelease.file === release.file) {
|
||||||
option_e.css("font-weight", FirmwareCache.has(release) ? "bold" : "normal");
|
option_e.toggleClass("cached", FirmwareCache.has(release));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -477,11 +477,10 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
versionName,
|
versionName,
|
||||||
version.descriptor.date,
|
version.descriptor.date,
|
||||||
versionLabel
|
versionLabel
|
||||||
))
|
));
|
||||||
.css("font-weight", FirmwareCache.has(version.descriptor)
|
if (FirmwareCache.has(version.descriptor)) {
|
||||||
? "bold"
|
select_e.addClass("cached");
|
||||||
: "normal"
|
}
|
||||||
);
|
|
||||||
select_e.data('summary', version.descriptor);
|
select_e.data('summary', version.descriptor);
|
||||||
versions_element.append(select_e);
|
versions_element.append(select_e);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue