This commit is contained in:
@@ -821,7 +821,7 @@ export default {
|
||||
let vm = this;
|
||||
vm.attachments = [];
|
||||
window.$gz.api
|
||||
.get("Attachment/list?ayatype=" + vm.ayaType + "&ayaid=" + vm.ayaId)
|
||||
.get("attachment/list?ayatype=" + vm.ayaType + "&ayaid=" + vm.ayaId)
|
||||
.then(res => {
|
||||
if (res.error) {
|
||||
window.$gz.errorHandler.handleFormError(res.error);
|
||||
@@ -929,12 +929,12 @@ export default {
|
||||
insertUrl(url, name) {
|
||||
if (url) {
|
||||
let isImageUrl = false;
|
||||
//Attachment?
|
||||
if (url.includes("Attachment/download/")) {
|
||||
//attachment?
|
||||
if (url.includes("attachment/download/")) {
|
||||
//it's an attachment url so fixup accordingly
|
||||
//i paramter added by gzapi::downloadUrl function
|
||||
isImageUrl = url.includes("&i=");
|
||||
let m = url.match(/Attachment\/download\/(.*)\?t=/);
|
||||
let m = url.match(/attachment\/download\/(.*)\?t=/);
|
||||
if (m.length > 1) {
|
||||
url = "[ATTACH:" + m[1] + "]";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user