fix: # in filename can not thumbnails

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

View File

@ -655,9 +655,7 @@
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>'; 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--; $i--;
} else { } else {
var nurl=window.location.href; var url=files[$i].href.replace(/preview/, 'thumbnails');
if (nurl.substr(-1)!="/") nurl+="/";
var url=nurl+str+'?thumbnails';
get_thumbnails_url(url, str, files[$i]); get_thumbnails_url(url, str, files[$i]);
} }
} }