1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

dry e.preventDefault to minimum

This commit is contained in:
Rémy HUBSCHER 2013-01-24 10:51:49 +01:00
parent 6fffdc0371
commit 6170665e1c
2 changed files with 2 additions and 4 deletions

View File

@ -407,7 +407,7 @@
// Handle Drop // Handle Drop
handleDrop: function (e) { handleDrop: function (e) {
zerobin.ignoreDrag(e); e.originalEvent.preventDefault();
zerobin.upload(e.originalEvent.dataTransfer.files); zerobin.upload(e.originalEvent.dataTransfer.files);
$("#content").removeClass('hover'); $("#content").removeClass('hover');
}, },
@ -418,7 +418,6 @@
}, },
handleDragLeave: function (e) { handleDragLeave: function (e) {
zerobin.ignoreDrag(e);
$(this).removeClass('hover'); $(this).removeClass('hover');
}, },
@ -832,7 +831,6 @@
$buttonOverlay.mouseover(mkcb($(this).css, 'cursor', 'pointer')); $buttonOverlay.mouseover(mkcb($(this).css, 'cursor', 'pointer'));
// Implements drag & drop upload // Implements drag & drop upload
$('#content').bind('dragenter', zerobin.ignoreDrag);
$('#content').bind('drop', zerobin.handleDrop); $('#content').bind('drop', zerobin.handleDrop);
$('#content').bind('dragover', zerobin.handleDragOver); $('#content').bind('dragover', zerobin.handleDragOver);
$('#content').bind('dragleave', zerobin.handleDragLeave); $('#content').bind('dragleave', zerobin.handleDragLeave);

File diff suppressed because one or more lines are too long