Skip to content
Snippets Groups Projects
Commit dfb74039 authored by alexisben's avatar alexisben
Browse files

Add image when not present

parents 3951af3d 0f1293b2
No related branches found
No related tags found
No related merge requests found
......@@ -182,9 +182,15 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json)
if (!inputImage) {
inputImage = document.createElement('img');
// add img-fluid img-thumb
inputImage.classList.add('img-fluid', 'img-thumb');
inputImage.classList.add('img-fluid', 'img-thumbnail');
inputImage.width = 1000;
inputImageContainer.appendChild(inputImage);
inputImageContainer.parentElement.classList.add('sdfi-deletable-file--with-file');
}
console.log(inputImage);
if (inputImage) {
inputImage.setAttribute('src', image.preview);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment