aboutsummaryrefslogtreecommitdiffstats
path: root/addon/js_upload/file-uploader/tests/browser-bugs/safari-bug2.htm
blob: 57f7bc013dbb501b528bdfa2cb9de3bdd6f51945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
</head>
<body>      

<script>
window.addEventListener('load', function(){
    document.addEventListener('dragenter', function(e){
        e.preventDefault();
    },false);
    document.addEventListener('dragover', function(e){
        e.preventDefault();        
        // e.dataTransfer.effectAllowed is none
        e.dataTransfer.dropEffect = 'copy';
    },false);    
},false);
</script>
</html>