fix: # bug

pull/128/head
qkqpttgf 2020-08-31 13:37:52 +08:00 committed by GitHub
parent f4d7c354ea
commit 86a083e196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -649,13 +649,13 @@
strarry=str.split('.');
ext=strarry[strarry.length-1].toLowerCase();
if (images.indexOf(ext)>-1) {
var url=files[$i].href;
url=url.substr(0,url.length-8);
if (document.getElementById('originalpic').checked==true) {
var url=files[$i].href;
url=url.substr(0,url.length-8);
files[$i].parentNode.parentNode.innerHTML='<td colspan="3"><img src="'+url+'" alt="'+str+'" onload="if (this.offsetWidth>document.getElementById(\'list-div\').offsetWidth) this.style.width=\'100%\';"></td>';
$i--;
} else {
var url=files[$i].href.replace(/preview/, 'thumbnails');
url+='?thumbnails';
get_thumbnails_url(url, str, files[$i]);
}
}