mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15: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
|
@ -34,7 +34,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
const option_e = $(this);
|
||||
const optionRelease = option_e.data("summary");
|
||||
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,
|
||||
version.descriptor.date,
|
||||
versionLabel
|
||||
))
|
||||
.css("font-weight", FirmwareCache.has(version.descriptor)
|
||||
? "bold"
|
||||
: "normal"
|
||||
);
|
||||
));
|
||||
if (FirmwareCache.has(version.descriptor)) {
|
||||
select_e.addClass("cached");
|
||||
}
|
||||
select_e.data('summary', version.descriptor);
|
||||
versions_element.append(select_e);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue