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:
ccd0 2015-05-22 13:28:08 -07:00
parent 6074e020e9
commit c44dced894
2 changed files with 0 additions and 17 deletions

View File

@ -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;

View File

@ -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 = []