fix: [thumbnail] picture preview was not showing up all the time

pull/4310/head
mokaddem 2019-03-28 16:13:30 +01:00
parent 3b684889da
commit 161231dd0b
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ function genericPopup(url, popupTarget, callback) {
}
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 += '<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>';