mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
extending implementation
This commit is contained in:
parent
d0bf009abb
commit
0b40722cdc
1 changed files with 11 additions and 1 deletions
12
main.js
12
main.js
|
@ -169,7 +169,17 @@ function add_custom_spinners() {
|
||||||
|
|
||||||
$('input[type="number"]').each(function() {
|
$('input[type="number"]').each(function() {
|
||||||
var input = $(this);
|
var input = $(this);
|
||||||
var isInt =(input.prop('step') == '') ? true : false;
|
|
||||||
|
var isInt = true;
|
||||||
|
if (input.prop('step') == '') {
|
||||||
|
isInt = true;
|
||||||
|
} else {
|
||||||
|
if (input.prop('step').indexOf('.') == -1) {
|
||||||
|
isInt = true;
|
||||||
|
} else {
|
||||||
|
isInt = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// make space for spinner
|
// make space for spinner
|
||||||
input.width(input.width() - 16);
|
input.width(input.width() - 16);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue