mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
extending implementation
This commit is contained in:
parent
3d5e333c6d
commit
98c587c3d9
1 changed files with 94 additions and 91 deletions
3
main.js
3
main.js
|
@ -170,6 +170,8 @@ function add_custom_spinners() {
|
||||||
$('input[type="number"]').each(function() {
|
$('input[type="number"]').each(function() {
|
||||||
var input = $(this);
|
var input = $(this);
|
||||||
|
|
||||||
|
// only add new spinner if one doesn't already exist
|
||||||
|
if (!input.next().hasClass('spinner')) {
|
||||||
var isInt = true;
|
var isInt = true;
|
||||||
if (input.prop('step') == '') {
|
if (input.prop('step') == '') {
|
||||||
isInt = true;
|
isInt = true;
|
||||||
|
@ -265,5 +267,6 @@ function add_custom_spinners() {
|
||||||
|
|
||||||
input.change();
|
input.change();
|
||||||
};
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue