i18n the osd button when pressed

It shows a "Saved" message for two seconds
10.3.x-maintenance
Miguel Angel Mulero Martinez 2018-05-10 20:11:56 +02:00
parent 1e8cf6fc2d
commit 7055f25978
2 changed files with 4 additions and 1 deletions

View File

@ -3366,6 +3366,9 @@
"osdWritePermissions": {
"message": "You don't have <span class=\"message-negative\">write permissions</span> for this file"
},
"osdButtonSaved": {
"message": "Saved"
},
"mainHelpArmed": {
"message": "Motor Arming"

View File

@ -1891,7 +1891,7 @@ TABS.osd.initialize = function (callback) {
MSP.promise(MSPCodes.MSP_EEPROM_WRITE);
GUI.log(i18n.getMessage('osdSettingsSaved'));
var oldText = $(this).text();
$(this).html("Saved");
$(this).html(i18n.getMessage('osdButtonSaved'));
setTimeout(function () {
$(self).html(oldText);
}, 2000);