diff --git a/admin/index_m.html b/admin/index_m.html index 35afd85..37b9071 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -62,26 +62,6 @@ '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(); } }); + + $.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); } + + +