Update index_m.html

This commit is contained in:
钟进 2018-09-26 14:44:15 +08:00
parent 4ab4db9f2f
commit f6738d16c1

View File

@ -61,7 +61,7 @@
function initTabs(onchange, data) {
if (!data) {
data = {};
$.each($('.door-grid'), function () {
$.each($('.modbus-grid'), function () {
var id = $(this).attr('id');
var key = id.split('_')[1];
@ -73,7 +73,7 @@
});
}
$.each($('.door-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_door') {
if (id === 'modbus-grid') {
obj.item.role = 'status';
} else if (id === 'modbus_coils') {
obj.item.role = 'button';
@ -393,7 +393,7 @@
}
});
$.each($('.door-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_door" class="door-grid"></div>
<div id="modbus-grid" class="modbus-grid"></div>
</div>