Modify ↓
Opened 7 years ago
Last modified 4 years ago
#13314 new enhancement
use a dedicated drop-zone instead whole HTML page
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Component: | TracDragDropPlugin |
Severity: | normal | Keywords: | |
Cc: | clemens | Trac Release: |
Description
Dropping upload files into the browser window is a very nice feature. But can we restrict the "active drop-zone" i.e. where file can be dropped to a smaller box e.g. the "drop file here" box?
The file drop shall be active only when moving the mouse over this drop-zone. This will avoid that user are confuse by the drag&drop feature when moving arbitrary file over the browser window. They may not have the intention to actually drag&drop files in TRAC.
Thanks
Clemens
Attachments (0)
Change History (2)
comment:1 Changed 4 years ago by
Cc: | clemens added |
---|
comment:2 Changed 4 years ago by
Note: See
TracTickets for help on using
tickets.
With the following hack I was able to let only the "attachment" section of a ticket be the drop zone. I am not an expert in Javascript. My hack is more like trial & error.
tracdragdrop.js
document.body;html');based on source:/tracdragdropplugin/0.12/tracdragdrop/htdocs/tracdragdrop.js@16998:961-962#L959