mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
Fix OSD save button behavior
This commit is contained in:
parent
69ab24e0f3
commit
423b96bb04
1 changed files with 3 additions and 3 deletions
|
@ -2799,11 +2799,11 @@ TABS.osd.initialize = function (callback) {
|
|||
$('a.save').click(function () {
|
||||
MSP.promise(MSPCodes.MSP_EEPROM_WRITE);
|
||||
GUI.log(i18n.getMessage('osdSettingsSaved'));
|
||||
var oldText = $(this).text();
|
||||
const oldText = $(this).html();
|
||||
$(this).html(i18n.getMessage('osdButtonSaved'));
|
||||
setTimeout(function () {
|
||||
setTimeout(() => {
|
||||
$(this).html(oldText);
|
||||
}, 2000);
|
||||
}, 1500);
|
||||
|
||||
Object.keys(self.analyticsChanges).forEach(function (change) {
|
||||
const value = self.analyticsChanges[change];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue