Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Drag-N-Drop image upload compatibility with Ubuntu + Firefox. #339

Merged
merged 2 commits into from Jan 27, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/plugins/factory/factory.coffee
Expand Up @@ -101,7 +101,7 @@ window.plugins.factory =

dropEvent.preventDefault()
if (dt = dropEvent.originalEvent.dataTransfer)?
if dt.types? and ('text/uri-list' in dt.types or 'text/x-moz-url' in dt.types)
if dt.types? and ('text/uri-list' in dt.types or 'text/x-moz-url' in dt.types) and not 'Files' in dt.types
url = dt.getData 'URL'
if found = url.match /^http:\/\/([a-zA-Z0-9:.-]+)(\/([a-zA-Z0-9:.-]+)\/([a-z0-9-]+(_rev\d+)?))+$/
wiki.log 'factory drop url', found
Expand Down
27 changes: 11 additions & 16 deletions client/plugins/factory/factory.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.