diff --git a/TC1/http_server/web/index.html b/TC1/http_server/web/index.html
index 6a38668..86bcf6f 100644
--- a/TC1/http_server/web/index.html
+++ b/TC1/http_server/web/index.html
@@ -996,7 +996,7 @@ $('#btn_action_selector').append(
.text(BTN_OPERATIONS[i])
);
}
-
+getmdlSelect.init(".getmdl-select");
var tb_html = `
@@ -1015,9 +1015,9 @@ for (var i = 0; i < actions.length; i++) {
var valueText = (isNaN(operations[0]) || operations[0] < 0 || operations[0] >= BTN_OPERATIONS.length) ? '未设置' : BTN_OPERATIONS[operations[0]];
tb_html += `
- | ${times > 0 ? '连续' : ''}短按${times}次 |
+ ${times > 1 ? '连续' : ''}短按${times}次 |
${valueText} |
- 删除 |
+ 删除 |
`;
}
@@ -1028,7 +1028,7 @@ for (var i = 0; i < actions.length; i++) {
| 长按${times}秒 |
${valueText} |
- 删除 |
+ 删除 |
`;
}
@@ -1398,6 +1398,7 @@ componentHandler.upgradeDom();
.text(i)
);
}
+ getmdlSelect.init(".getmdl-select");
});
function addButtonEvent() {
@@ -1411,6 +1412,13 @@ componentHandler.upgradeDom();
}
}, `${times_or_seconds} ${event} ${longPress}`);
}
+ function deleteButtonEvent(times_or_seconds ,longPress){
+ HttpPost("/buttonEvents", function (re) {
+ if (re == "OK") {
+ ShowToast("已删除按钮事件");
+ }
+ }, `${times_or_seconds} -1 ${longPress}`);
+ }
function selectOperation(rowId, index, operationText) {
var witch = parseInt(rowId.split('-')[1]);
if (index === -1) {