1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 03:49:53 +03:00

Fix 2.1 compatibility issues

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-05-25 13:51:08 +02:00
parent 10780f3f59
commit ad94f9f275
2 changed files with 7 additions and 0 deletions

View file

@ -78,6 +78,11 @@ var Settings = (function () {
var settingName = input.data('setting');
var setting = input.data('setting-info');
var value;
if (typeof setting == 'undefined') {
return null;
}
if (setting.table) {
if (input.attr('type') == 'checkbox') {
value = input.prop('checked') ? 1 : 0;