mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-29 11:09:14 -04:00
Lots of small improvements, websockets fallback
This commit is contained in:
parent
e5eab64c6b
commit
22be7c5cb9
35 changed files with 2672 additions and 916 deletions
|
@ -25,7 +25,7 @@ Chat.FileDropBehaviorImpl = {
|
|||
dropZone.addEventListener('drop', function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
//call dragend
|
||||
dragEnd();
|
||||
|
||||
|
@ -36,5 +36,13 @@ Chat.FileDropBehaviorImpl = {
|
|||
});
|
||||
}
|
||||
};
|
||||
document.body.addEventListener('dragover', function(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}, false);
|
||||
document.body.addEventListener('drop', function(event) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
});
|
||||
Chat.FileDropBehavior = [Chat.FileDropBehaviorImpl, Chat.FileSelectionBehavior];
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue