| @@ -852,9 +852,6 @@ | |||||
| loadSelectedModelFile(obj); | loadSelectedModelFile(obj); | ||||
| }, | }, | ||||
| onHide: function () { | onHide: function () { | ||||
| var cityObj = $("#modelSelectedFile"); | |||||
| cityObj.attr("value", ""); | |||||
| document.getElementById("formId").reset(); | |||||
| $('.ui.dimmer').css({ "background-color": "" }) | $('.ui.dimmer').css({ "background-color": "" }) | ||||
| $('.ui.error.message').text() | $('.ui.error.message').text() | ||||
| $('.ui.error.message').css('display', 'none') | $('.ui.error.message').css('display', 'none') | ||||
| @@ -877,8 +874,12 @@ | |||||
| 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="jobId"]').val(""); | |||||
| $('input[name="label"]').val(""); | $('input[name="label"]').val(""); | ||||
| $('input[name="description"]').val(""); | $('input[name="description"]').val(""); | ||||
| var cityObj = $("#modelSelectedFile"); | |||||
| cityObj.attr("value", ""); | |||||
| document.getElementById("formId").reset(); | |||||
| location.href = `/${userName}/${repoPath}/modelmanage/show_model` | location.href = `/${userName}/${repoPath}/modelmanage/show_model` | ||||
| $('.ui.modal.second').modal('hide') | $('.ui.modal.second').modal('hide') | ||||
| }, | }, | ||||
| @@ -877,9 +877,6 @@ | |||||
| loadSelectedModelFile(obj); | loadSelectedModelFile(obj); | ||||
| }, | }, | ||||
| onHide: function () { | onHide: function () { | ||||
| var cityObj = $("#modelSelectedFile"); | |||||
| cityObj.attr("value", ""); | |||||
| document.getElementById("formId").reset(); | |||||
| $('.ui.dimmer').css({ "background-color": "" }) | $('.ui.dimmer').css({ "background-color": "" }) | ||||
| $('.ui.error.message').text() | $('.ui.error.message').text() | ||||
| $('.ui.error.message').css('display', 'none') | $('.ui.error.message').css('display', 'none') | ||||
| @@ -903,8 +900,12 @@ | |||||
| 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="jobId"]').val(""); | |||||
| $('input[name="label"]').val(""); | $('input[name="label"]').val(""); | ||||
| $('input[name="description"]').val(""); | $('input[name="description"]').val(""); | ||||
| var cityObj = $("#modelSelectedFile"); | |||||
| cityObj.attr("value", ""); | |||||
| document.getElementById("formId").reset(); | |||||
| location.href = `/${userName}/${repoPath}/modelmanage/show_model` | location.href = `/${userName}/${repoPath}/modelmanage/show_model` | ||||
| $('.ui.modal.second').modal('hide') | $('.ui.modal.second').modal('hide') | ||||
| }, | }, | ||||