@@ -877,6 +877,8 @@ | |||||
success: function (res) { | success: function (res) { | ||||
$('input[name="engine_name"]').val(""); | $('input[name="engine_name"]').val(""); | ||||
$('input[name="engine"]').val(""); | $('input[name="engine"]').val(""); | ||||
$('input[name="label"]').val(""); | |||||
$('input[name="description"]').val(""); | |||||
location.href = `/${userName}/${repoPath}/modelmanage/show_model` | location.href = `/${userName}/${repoPath}/modelmanage/show_model` | ||||
$('.ui.modal.second').modal('hide') | $('.ui.modal.second').modal('hide') | ||||
}, | }, | ||||
@@ -882,6 +882,8 @@ | |||||
success: function (res) { | success: function (res) { | ||||
$('input[name="engine_name"]').val(""); | $('input[name="engine_name"]').val(""); | ||||
$('input[name="engine"]').val(""); | $('input[name="engine"]').val(""); | ||||
$('input[name="label"]').val(""); | |||||
$('input[name="description"]').val(""); | |||||
location.href = `/${userName}/${repoPath}/modelmanage/show_model` | location.href = `/${userName}/${repoPath}/modelmanage/show_model` | ||||
$('.ui.modal.second').modal('hide') | $('.ui.modal.second').modal('hide') | ||||
}, | }, | ||||
@@ -929,6 +929,8 @@ | |||||
success: function (res) { | success: function (res) { | ||||
$('input[name="engine_name"]').val(""); | $('input[name="engine_name"]').val(""); | ||||
$('input[name="engine"]').val(""); | $('input[name="engine"]').val(""); | ||||
$('input[name="label"]').val(""); | |||||
$('input[name="description"]').val(""); | |||||
location.href = `/${userName}/${repoPath}/modelmanage/show_model` | location.href = `/${userName}/${repoPath}/modelmanage/show_model` | ||||
$('.ui.modal.second').modal('hide') | $('.ui.modal.second').modal('hide') | ||||
}, | }, | ||||