Closed (fixed)
Project:
HTML5 Drag & Drop File
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2013 at 21:59 UTC
Updated:
24 Jan 2014 at 02:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
adamsro commentedComment #2
rudiedirkx commentedGimme some HTML, or a working example, or a Fiddle, or something. I'm not a very trusting fella.
Comment #3
adamsro commentedHere's a big fat copy paste. Not sure if
form-itemis the best parent class to look for.form-type-managed-filemight be a good one.Comment #4
rudiedirkx commentedSlightly more readable HTML here.
button[type="submit"]is probably not the best either. Maybe.form-submit... Is that unique enough? Orinput[type="submit"], button.form-submit(as combined like that).I'll use your favorite that still works in Seven. Let me know.
Comment #5
adamsro commentedI think
[type="submit"]is nice a broad. That'll handleinputandbuttonof course..form-submitshould work too. I just tested my patch with Seven and it seems to be working well.Comment #6
rudiedirkx commentedI've decided not to do this, because it has to work in combination with FileField Sources too (several submit buttons) and also for other themes, so there's too many scenario's.
If you can make a patch that works for every scenario I can make up, I'll include it. I'm focusing on default theming (like Seven and probably most themes).
Comment #7
adamsro commentedI found this bit in the autoupload module:
I bet that'd work well. I can test and roll a new patch if you'd like.
Comment #8
rudiedirkx commentedThe
Drupal.t('Upload')is very unreliable.Maybe DDF can add a data attribute to the relevant submit button somewhere in the widget process functions... I'm sure targeting the correct button is simpler in the back than it is in the front.
I'll look at this later.
Comment #9
rudiedirkx commentedAlright, I think I've fixed it, but I don't do Bootstrap, so you'll have to try it: http://drupalcode.org/project/dragdropfile.git/commitdiff/d35b41e or use dev.
The config form (admin/config/media/dragdropfile) now has an configurable selector, so you can use whatever works for you. The default selector is also better, so you probably don't even have to change it now.
Let me know.
Comment #10
adamsro commentedYup, its working for me. Seems like a robust solution, Thanks. The lousy aim functionality is a pleasant surprise too.