i18n the osd button when pressed
It shows a "Saved" message for two seconds10.3.x-maintenance
parent
1e8cf6fc2d
commit
7055f25978
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue