JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
972 stars 398 forks source link

add an upload button and its callback. #46

Closed suifengtec closed 6 years ago

suifengtec commented 8 years ago

add an upload button and its callback.

covistefan commented 7 years ago

I've added

this.input.trigger($.Event("dropify.afterReady"), [this]);

to function

Dropify.prototype.onFileReady

after col 232:

this.setPreview(previewable, src);

so I can call

drEvent.on('dropify.afterReady', function(event, element) { $('#uploadbutton').show(); });

Maybe this helps !?