From 82b00008d904b2ed501dbce228282efbb71eaaa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AB=E5=8D=83=E6=B5=81?= <40739051+jym503558564@users.noreply.github.com> Date: Tue, 17 Sep 2019 12:35:18 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=9A=84=E5=8D=8F=E8=AE=AE=E7=BB=84=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4=E5=8D=8F=E8=AE=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#3228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Update] 修改更新资产的协议组,不能删除协议的问题 * [Update] 修改前端属性名,避免冲突 --- apps/assets/templates/assets/asset_create.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/assets/templates/assets/asset_create.html b/apps/assets/templates/assets/asset_create.html index 3a2f9929f..e8c2b1e83 100644 --- a/apps/assets/templates/assets/asset_create.html +++ b/apps/assets/templates/assets/asset_create.html @@ -28,7 +28,7 @@
{{ fm.name }}
{{ fm.port }}
- +
@@ -97,7 +97,7 @@ function format(item) { function protocolBtnShow() { $(".btn-protocol.btn-add").hide(); $(".btn-protocol.btn-add:last").show(); - var btnDel = $(".btn-protocol.btn-del"); + var btnDel = $(".btn-protocol.btn-delete"); if (btnDel.length === 1) { btnDel.addClass("disabled") } else { @@ -140,7 +140,7 @@ $(document).ready(function () { protocolRef.trigger("change") } }) -.on("click", ".btn-protocol.btn-del", function () { +.on("click", ".btn-protocol.btn-delete", function () { $(this).parent().parent().remove(); protocolBtnShow() })