]> git.mxchange.org Git - friendica.git/commitdiff
Use another "img" format to simplify adding of alternative texts
authorMichael <heluecht@pirati.ca>
Mon, 29 Jul 2019 20:42:42 +0000 (20:42 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 29 Jul 2019 20:42:42 +0000 (20:42 +0000)
view/js/filebrowser.js
view/theme/frio/js/filebrowser.js

index fc852dcd7564f1f68ba49c47a19d749323bfcd9c..1faef4acc4f23a88d9185270404fc76f7ac9fa5f 100644 (file)
@@ -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
index c036d181753e2d35910f4595d15090c0bb23b11d..b43cf5ce4364ffef9fcdc6c18ba86f5346ff3737 100644 (file)
@@ -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