Explorar o código

Update add.html

hzgjq %!s(int64=5) %!d(string=hai) anos
pai
achega
4b39a94d88
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/views/index/add.html

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

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