1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fix OSD save button behavior

This commit is contained in:
Károly Kiripolszky 2020-04-13 17:22:31 +02:00
parent 69ab24e0f3
commit 423b96bb04

View file

@ -2799,11 +2799,11 @@ TABS.osd.initialize = function (callback) {
$('a.save').click(function () { $('a.save').click(function () {
MSP.promise(MSPCodes.MSP_EEPROM_WRITE); MSP.promise(MSPCodes.MSP_EEPROM_WRITE);
GUI.log(i18n.getMessage('osdSettingsSaved')); GUI.log(i18n.getMessage('osdSettingsSaved'));
var oldText = $(this).text(); const oldText = $(this).html();
$(this).html(i18n.getMessage('osdButtonSaved')); $(this).html(i18n.getMessage('osdButtonSaved'));
setTimeout(function () { setTimeout(() => {
$(this).html(oldText); $(this).html(oldText);
}, 2000); }, 1500);
Object.keys(self.analyticsChanges).forEach(function (change) { Object.keys(self.analyticsChanges).forEach(function (change) {
const value = self.analyticsChanges[change]; const value = self.analyticsChanges[change];