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:
parent
6fffdc0371
commit
6170665e1c
@ -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);
|
||||||
|
2
zerobin/static/js/main.min.js
vendored
2
zerobin/static/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user