Auto merged - #2622 at Sat, 09 Oct 2021 22:17:06 GMT
Fixed text for the PID profile reset button.10.7-maintenance
parent
8d965d0b07
commit
e459150c24
|
@ -1900,11 +1900,11 @@
|
|||
"dialogCopyProfileClose": {
|
||||
"message": "Cancel"
|
||||
},
|
||||
"pidTuningResetProfile": {
|
||||
"message": "Reset all profile values"
|
||||
"pidTuningResetPidProfile": {
|
||||
"message": "Reset current PID profile settings"
|
||||
},
|
||||
"pidTuningProfileReset": {
|
||||
"message": "Loaded default profile values."
|
||||
"pidTuningPidProfileReset": {
|
||||
"message": "Loaded default values for the current PID profile."
|
||||
},
|
||||
"pidTuningReceivedProfile": {
|
||||
"message": "Flight controller set Profile: <strong class=\"message-positive\">$1</strong>"
|
||||
|
|
|
@ -481,7 +481,7 @@
|
|||
}
|
||||
|
||||
.tab-pid_tuning .resetbt {
|
||||
width: 140px;
|
||||
width: 200px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1163,13 +1163,13 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
updatePidDisplay();
|
||||
});
|
||||
|
||||
$('#resetProfile').on('click', function(){
|
||||
$('#resetPidProfile').on('click', function(){
|
||||
self.updating = true;
|
||||
MSP.promise(MSPCodes.MSP_SET_RESET_CURR_PID).then(function () {
|
||||
self.refresh(function () {
|
||||
self.updating = false;
|
||||
|
||||
GUI.log(i18n.getMessage('pidTuningProfileReset'));
|
||||
GUI.log(i18n.getMessage('pidTuningPidProfileReset'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
<div class="default_btn copyrateprofilebtn">
|
||||
<a href="#" id="copyRateProfile" i18n="pidTuningCopyRateProfile"></a>
|
||||
</div>
|
||||
<div class="default_btn resetbt">
|
||||
<a href="#" id="resetProfile" i18n="pidTuningResetProfile"></a>
|
||||
<div class="default_btn resetbt">
|
||||
<a href="#" id="resetPidProfile" i18n="pidTuningResetPidProfile"></a>
|
||||
</div>
|
||||
<div class="default_btn show showAllPids">
|
||||
<a href="#" id="showAllPids" i18n="pidTuningShowAllPids"></a>
|
||||
|
|
Loading…
Reference in New Issue