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() })