Skip to content

Commit

Permalink
[UPD] handle user media Anomalie-19935
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Sep 30, 2024
1 parent 7d57210 commit 6bdc3e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion md/mdDiaporama.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ol_ext_element from "ol-ext/util/element";
import { getMediaURL } from "mcutils/api/serviceURL";

import './mdDiaporam.css'

Expand Down Expand Up @@ -46,7 +47,7 @@ function prepareDiaporama(type, data) {
atts.img.forEach((img, i) => {
if (img) {
ol_ext_element.create('IMG', {
src: img,
src: getMediaURL(img),
className: 'diapo',
parent: diapo
});
Expand Down
5 changes: 3 additions & 2 deletions md/mdImageSlider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ol_ext_element from "ol-ext/util/element";
import { getMediaURL } from "mcutils/api/serviceURL";

import './mdImageSlider.css'

Expand Down Expand Up @@ -54,7 +55,7 @@ function createElement(content, atts, width, height) {
})
// First image
ol_ext_element.create('IMG', {
src: atts.img1,
src: getMediaURL(atts.img1),
className: 'md-img-1',
style: {
width: width ? width + 'px' : 'auto',
Expand All @@ -74,7 +75,7 @@ function createElement(content, atts, width, height) {
// Second image
ol_ext_element.create('IMG', {
className: 'md-img-2',
src: atts.img2,
src: getMediaURL(atts.img2),
parent: element
})
return element
Expand Down

0 comments on commit 6bdc3e3

Please sign in to comment.