From dfee2c467cc1ede4f467073331ada9576892677a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 29 Jul 2019 20:42:42 +0000 Subject: [PATCH] Use another "img" format to simplify adding of alternative texts --- view/js/filebrowser.js | 2 +- view/theme/frio/js/filebrowser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/js/filebrowser.js b/view/js/filebrowser.js index fc852dcd7..1faef4acc 100644 --- a/view/js/filebrowser.js +++ b/view/js/filebrowser.js @@ -86,7 +86,7 @@ var FileBrowser = { var embed = ""; if (FileBrowser.type == "image") { - embed = "[url="+this.dataset.link+"][img]"+this.dataset.img+"[/img][/url]"; + embed = "[url="+this.dataset.link+"][img="+this.dataset.img+"][/img][/url]"; } if (FileBrowser.type=="file") { // attachment links are "baseurl/attach/id"; we need id diff --git a/view/theme/frio/js/filebrowser.js b/view/theme/frio/js/filebrowser.js index c036d1817..b43cf5ce4 100644 --- a/view/theme/frio/js/filebrowser.js +++ b/view/theme/frio/js/filebrowser.js @@ -111,7 +111,7 @@ var FileBrowser = { var embed = ""; if (FileBrowser.type === "image") { - embed = "[url=" + this.dataset.link + "][img]" + this.dataset.img + "[/img][/url]"; + embed = "[url=" + this.dataset.link + "][img=" + this.dataset.img + "][/img][/url]"; } if (FileBrowser.type === "file") { // attachment links are "baseurl/attach/id"; we need id