Skip to content

Commit

Permalink
Update add.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hzgjq authored Mar 2, 2020
1 parent 7dcb696 commit 4b39a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/views/index/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3 class="ibox-title" langtag="page-add"></h3>
}

$(function () {
$("#type").val('{{.type}}');
$("#type").val(('{{.type}}' == '') ? 'tcp' : '{{.type}}');
resetForm()
$("#type").on("change", function () {
resetForm()
Expand Down

0 comments on commit 4b39a94

Please # to comment.