Skip to content

Commit

Permalink
Changed drag enter code to stop propigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevalstar committed Feb 8, 2013
1 parent ddef872 commit 9e17e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/js/admin.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ MV.admin.imageList.prototype = {
e.preventDefault(); e.preventDefault();
$(this).html('Drop Here'); $(this).html('Drop Here');
}).on( 'dragover', function(e) { }).on( 'dragover', function(e) {
// do nothing.. fixes chrome bug // allows drop;
e.stopPropagation();
}).on( 'dragleave', function(e) { }).on( 'dragleave', function(e) {
e.preventDefault(); e.preventDefault();
$(this).html('Drag a file here to upload'); $(this).html('Drag a file here to upload');
Expand Down

0 comments on commit 9e17e7c

Please sign in to comment.