1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

extending implementation

This commit is contained in:
cTn 2014-01-22 16:02:55 +01:00
parent d0bf009abb
commit 0b40722cdc

12
main.js
View file

@ -169,7 +169,17 @@ function add_custom_spinners() {
$('input[type="number"]').each(function() {
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
input.width(input.width() - 16);