Update index_m.html

This commit is contained in:
钟进 2018-09-26 14:58:22 +08:00
parent 62dc812c92
commit be8f414c5e

View File

@ -61,7 +61,7 @@
function initTabs(onchange, data) {
if (!data) {
data = {};
$.each($('.modbus_grid'), function () {
$.each($('.modbus-grid'), function () {
var id = $(this).attr('id');
var key = id.split('_')[1];
@ -73,7 +73,7 @@
});
}
$.each($('.modbus_grid'), function () {
$.each($('.modbus-grid'), function () {
var _id = $(this).attr('id');
var roleItems = [
@ -216,7 +216,7 @@
}
if (!obj.item.role && obj.item.type !== 'string' && obj.item.type !== 'stringle') {
if (id === 'modbus_grid') {
if (id === 'modbus_doors') {
obj.item.role = 'status';
} else if (id === 'modbus_coils') {
obj.item.role = 'button';
@ -393,7 +393,7 @@
}
});
$.each($('.modbus_grid'), function () {
$.each($('.modbus-grid'), function () {
var id = $(this).attr('id');
var key = id.split('_')[1];
@ -484,7 +484,7 @@
<div id="tab-notification" class="col s12 page">
<div id="modbus_tab_dis_inputs" class="modbus-tab">
<div id="modbus_grid" class="modbus_grid"></div>
<div id="modbus_doors" class="modbus-grid"></div>
</div>