Explorar el Código

Update add.html

hzgjq hace 5 años
padre
commit
4b39a94d88
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/views/index/add.html

+ 1 - 1
web/views/index/add.html

@@ -134,7 +134,7 @@
     }
 
     $(function () {
-        $("#type").val('{{.type}}');
+        $("#type").val(('{{.type}}' == '') ? 'tcp' : '{{.type}}');
         resetForm()
         $("#type").on("change", function () {
             resetForm()