Browse Source

fix issue

pull/3418/head
zhoupzh 2 years ago
parent
commit
0d7a7c3ac8
2 changed files with 6 additions and 15 deletions
  1. +1
    -11
      templates/repo/grampus/notebook/show.tmpl
  2. +5
    -4
      web_src/js/standalone/cloudbrainNew.js

+ 1
- 11
templates/repo/grampus/notebook/show.tmpl View File

@@ -298,17 +298,7 @@
</div>
</td>
</tr>
<tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80">
{{$.i18n.Tr "cloudbrain.output_storage_path"}}
</td>

<td class="ti-text-form-content">
<div class="text-span text-span-w" id="model_storage_path">
{{$.model_path}}
</div>
</td>
</tr>
{{end}}
{{if eq .ComputeResource "NPU"}}


+ 5
- 4
web_src/js/standalone/cloudbrainNew.js View File

@@ -115,10 +115,7 @@
},
onSuccess: function () {
// $('.ui.page.dimmer').dimmer('show')
if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){
$('input[name="ckpt_name"]').parent().addClass("error")
return false
}
document.getElementById("mask").style.display = "block";
isValidate = true;
},
@@ -176,6 +173,10 @@
if (!paramNotValue) {
return false;
}
if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){
$('input[name="ckpt_name"]').parent().addClass("error")
return false
}
validate();
});
})();

Loading…
Cancel
Save