From 0f403c1306d373b698b26ecd8fe4d1eae00d3bbc Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 26 Jun 2022 15:49:16 +0200 Subject: [PATCH] small fixes --- themes/buha/static/js/generator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/buha/static/js/generator.js b/themes/buha/static/js/generator.js index c120359..ed60f8c 100644 --- a/themes/buha/static/js/generator.js +++ b/themes/buha/static/js/generator.js @@ -78,11 +78,11 @@ function insert_file(fname) { if (t == "image") { var n = prompt("Name", "Wikipedia Logo"); var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces"); - if (desc != null && n != null) {var out = "\n\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";} + if (desc != null && n != null) {var out = "\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n";} } else if (t == "other") { var n = prompt("Name", "Textfile"); var desc = prompt("Describe the File for the Blind", "A file with content related to the subject"); - if (desc != null && n != null) {var out = "\n\n[" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";} + if (desc != null && n != null) {var out = "\n[" + n + "](" + x + " \"" + desc + "\"" + ")\n";} } if (out != null) { typeInTextarea(out); @@ -132,14 +132,14 @@ function button(str) { if (url != null) { var n = prompt("Name", "Wikipedia"); var desc = prompt("Describe the Link for the Blind", "The free Encyclopedia"); - if (desc != null && n != null) {var out = "\n\n![" + n + "](" + x + " \"" + desc + "\"" + ")\n\n";} + if (desc != null && n != null) {var out = "![" + n + "](" + url + " \"" + desc + "\"" + ") ";} } } if (x == "picurl") { let url = prompt("Please enter Link to an image", "https://de.wikipedia.org/static/images/project-logos/dewiki.png"); if (url != null) { var n = prompt("Name", "Wikipedia Logo"); - var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces"); if (desc != null && n != null) {var out = "\n\n![" + n + "](" + url + " \"" + desc + "\"" + ")\n\n";} + var desc = prompt("Describe the Picture for the Blind", "A Globe composed of letters and puzzle pieces"); if (desc != null && n != null) {var out = "\n![" + n + "](" + url + " \"" + desc + "\"" + ")\n";} } } if (x == "headline") {