mirror of https://github.com/MISP/MISP
fix: [thumbnail] picture preview was not showing up all the time
parent
3b684889da
commit
161231dd0b
|
@ -80,7 +80,9 @@ function genericPopup(url, popupTarget, callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function screenshotPopup(url, title) {
|
function screenshotPopup(url, title) {
|
||||||
url = url.slice(0, -1);
|
if (!url.startsWith('data:image/')) {
|
||||||
|
url = url.slice(0, -1);
|
||||||
|
}
|
||||||
popupHtml = '<it class="fa fa-spin fa-spinner" style="font-size: xx-large; color: white; position: fixed; left: 50%; top: 50%;"></it>'
|
popupHtml = '<it class="fa fa-spin fa-spinner" style="font-size: xx-large; color: white; position: fixed; left: 50%; top: 50%;"></it>'
|
||||||
popupHtml += '<img class="screenshot_box-content hidden" src="' + url + '" id="screenshot-image" title="' + title + '" alt="' + title + '" onload="$(this).show(); $(this).parent().find(\'.fa-spinner\').remove();"/>';
|
popupHtml += '<img class="screenshot_box-content hidden" src="' + url + '" id="screenshot-image" title="' + title + '" alt="' + title + '" onload="$(this).show(); $(this).parent().find(\'.fa-spinner\').remove();"/>';
|
||||||
popupHtml += '<div class="close-icon useCursorPointer" onClick="closeScreenshot();"></div>';
|
popupHtml += '<div class="close-icon useCursorPointer" onClick="closeScreenshot();"></div>';
|
||||||
|
|
Loading…
Reference in New Issue