Update index_m.html

This commit is contained in:
钟进 2018-09-26 10:49:16 +08:00
parent ca7dd136d9
commit c98de2dea5

View File

@ -62,26 +62,6 @@
'ieee754': 2 'ieee754': 2
}; };
function save(callback) {
var obj = {
params: {}
};
$.each($('.modbus-grid'), function () {
var id = $(this).attr('id');
var key = id.split('_')[1];
if ($(this).data('JSGrid')._editingRow) {
$(this).jsGrid('updateItem');
}
obj[key] = $(this).jsGrid('option', 'data');
});
callback(obj);
}
@ -483,10 +463,25 @@
obj[$this.attr('id')] = $this.val(); obj[$this.attr('id')] = $this.val();
} }
}); });
$.each($('.modbus-grid'), function () {
var id = $(this).attr('id');
var key = id.split('_')[1];
if ($(this).data('JSGrid')._editingRow) {
$(this).jsGrid('updateItem');
}
obj[key] = $(this).jsGrid('option', 'data');
});
callback(obj); callback(obj);
} }
</script> </script>
</head> </head>
<body> <body>
<!-- you have to put your config page in a div with id adapter-container --> <!-- you have to put your config page in a div with id adapter-container -->
<div id="adapter-container"> <div id="adapter-container">