fdssfd
This commit is contained in:
parent
665c066888
commit
2eba69c90c
2 changed files with 9 additions and 6 deletions
|
@ -215,12 +215,15 @@ document.onpaste = function(event) {
|
|||
var fullname = focused.dataset.fullname;
|
||||
f=document.getElementById('file-upload-reply-' + fullname);
|
||||
files = event.clipboardData.files
|
||||
filename = files[0].name.toLowerCase()
|
||||
if (filename.endsWith(".jpg") || filename.endsWith(".jpeg") || filename.endsWith(".png") || filename.endsWith(".webp") || filename.endsWith(".gif"))
|
||||
{
|
||||
f.files = files;
|
||||
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
|
||||
try {
|
||||
filename = files[0].name.toLowerCase()
|
||||
if (filename.endsWith(".jpg") || filename.endsWith(".jpeg") || filename.endsWith(".png") || filename.endsWith(".webp") || filename.endsWith(".gif"))
|
||||
{
|
||||
f.files = files;
|
||||
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
|
||||
}
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
else if (focused.id.includes('comment-edit-body-')) {
|
||||
var id = focused.dataset.id;
|
||||
|
|
|
@ -807,7 +807,7 @@
|
|||
|
||||
{% if v %}
|
||||
<script src="/assets/js/marked.js?v=191"></script>
|
||||
<script src="/assets/js/comments_v.js?v=191"></script>
|
||||
<script src="/assets/js/comments_v.js?v=192"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/assets/js/clipboard.js?v=190"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue