aboutsummaryrefslogtreecommitdiff
path: root/app/static/package_create.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/static/package_create.js')
-rw-r--r--app/static/package_create.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/static/package_create.js b/app/static/package_create.js
index 6568550..0cad6eb 100644
--- a/app/static/package_create.js
+++ b/app/static/package_create.js
@@ -27,12 +27,10 @@ $(function() {
console.log(result)
$("#name").val(result.name || "")
$("#title").val(result.title || "")
- const desc = result.description || ""
- if (desc.length > 0) {
- const idx = desc.indexOf(".")
- $("#shortDesc").val((idx < 5 || idx > 100) ? desc.substring(0, Math.min(desc.length, 100)) : desc.substring(0, idx))
- $("#desc").val(desc)
- }
+ $("#repo").val(result.repo || repoURL)
+ $("#issueTracker").val(result.issueTracker || "")
+ $("#desc").val(result.description || "")
+ $("#shortDesc").val(result.short_description || "")
finish()
}).catch(function(e) {
alert(e)