Revert "Fix bug where dragging and dropping disables captcha. #407"
This reverts commit c412a25d5a3fc9156f4f93df0f7b46ac988611ee. Revert "Prevent dropping files onto captcha causing navigation to the file." This reverts commit ee88196ffee1502fff13425457a8b831b13e8423.
This commit is contained in:
parent
6074e020e9
commit
c44dced894
@ -1269,11 +1269,6 @@ input.field.tripped:not(:hover):not(:focus) {
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
/* Prevent dragging files into captcha */
|
||||
:root.dragging iframe {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* File Input, Submit Button */
|
||||
#file-n-submit {
|
||||
display: -webkit-flex;
|
||||
|
||||
@ -74,8 +74,6 @@ QR =
|
||||
$.on d, 'dragover', QR.dragOver
|
||||
$.on d, 'drop', QR.dropFile
|
||||
$.on d, 'dragstart dragend', QR.drag
|
||||
$.on d, 'dragenter', QR.dragEnter
|
||||
$.on d, 'dragleave drop', QR.dragLeave
|
||||
|
||||
$.on d, 'IndexRefresh', QR.generatePostableThreadsList
|
||||
$.on d, 'ThreadUpdate', QR.statusCheck
|
||||
@ -318,20 +316,10 @@ QR =
|
||||
dropFile: (e) ->
|
||||
# Let it only handle files from the desktop.
|
||||
return unless e.dataTransfer.files.length
|
||||
|
||||
e.preventDefault()
|
||||
QR.open()
|
||||
QR.handleFiles e.dataTransfer.files
|
||||
|
||||
dragEnter: (e) ->
|
||||
QR.dragTarget = e.target
|
||||
$.addClass doc, 'dragging'
|
||||
|
||||
dragLeave: (e) ->
|
||||
if QR.dragTarget is e.target or e.type is 'drop'
|
||||
delete QR.dragTarget
|
||||
$.rmClass doc, 'dragging'
|
||||
|
||||
paste: (e) ->
|
||||
return unless e.clipboardData.items
|
||||
files = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user