mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Remove "Return to saved values" button
This commit is contained in:
parent
1fb95591a4
commit
b956ce2162
3 changed files with 1 additions and 14 deletions
|
@ -5627,12 +5627,9 @@
|
||||||
"message": "Rates type change"
|
"message": "Rates type change"
|
||||||
},
|
},
|
||||||
"dialogRatesTypeNote": {
|
"dialogRatesTypeNote": {
|
||||||
"message": "<span class=\"message-negative\"><b>WARNING: You are changing the rates type.</b></span> If you change the rates type your rates will be set to a default curve.<br><br>Nothing is saved yet and you can still return to the values saved in the model by clicking the \"Return to saved values\" button.</br></br>If you want to continue editing your rates without changing rates type just click \"Cancel\"."
|
"message": "<span class=\"message-negative\"><b>WARNING: You are changing the rates type.</b></span> If you change the rates type your rates will be set to a default curve."
|
||||||
},
|
},
|
||||||
"dialogRatesTypeConfirm": {
|
"dialogRatesTypeConfirm": {
|
||||||
"message": "Change"
|
"message": "Change"
|
||||||
},
|
|
||||||
"dialogRatesTypeToSaved": {
|
|
||||||
"message": "Return to saved values"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2357,15 +2357,6 @@ TABS.pid_tuning.changeRatesType = function(rateTypeID) {
|
||||||
dialogRatesType.close();
|
dialogRatesType.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.dialogRatesType-tosavedbtn').click(function() {
|
|
||||||
self.currentRatesType = RC_tuning.rates_type;
|
|
||||||
$('.rates_type select[id="ratesType"]').val(self.currentRatesType);
|
|
||||||
self.changeRatesTypeLogo();
|
|
||||||
self.changeRatesSystem(true);
|
|
||||||
self.previousRatesType = self.currentRatesType;
|
|
||||||
dialogRatesType.close();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.dialogRatesType-confirmbtn').click(function() {
|
$('.dialogRatesType-confirmbtn').click(function() {
|
||||||
self.currentRatesType = rateTypeID;
|
self.currentRatesType = rateTypeID;
|
||||||
self.changeRatesTypeLogo();
|
self.changeRatesTypeLogo();
|
||||||
|
|
|
@ -1510,7 +1510,6 @@
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<a href="#" class="dialogRatesType-confirmbtn regular-button" i18n="dialogRatesTypeConfirm"></a>
|
<a href="#" class="dialogRatesType-confirmbtn regular-button" i18n="dialogRatesTypeConfirm"></a>
|
||||||
<a href="#" class="dialogRatesType-cancelbtn regular-button" i18n="cancel"></a>
|
<a href="#" class="dialogRatesType-cancelbtn regular-button" i18n="cancel"></a>
|
||||||
<a href="#" class="dialogRatesType-tosavedbtn regular-button" i18n="dialogRatesTypeToSaved"></a>
|
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue