Update index_m.html
This commit is contained in:
@@ -62,7 +62,29 @@
|
||||
'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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function switchOneType(data, id) {
|
||||
/*
|
||||
var isDirect = $('#modbus_directAddresses').prop('checked');
|
||||
|
||||
Reference in New Issue
Block a user