humaan / Modaal

An accessible dialog window library for all humans.
http://humaan.com/modaal/
MIT License
2.72k stars 183 forks source link

Problem with jQuery-File-Upload plugin in modal #71

Closed mojbenzcar closed 8 years ago

mojbenzcar commented 8 years ago

I am trying the initialize the fileupload like

$('.modal_selector').modaal({
        after_open: function () {
            $('.image_selector').fileupload();
        }
    });

but is not working and throwing cannot call methods on fileupload prior to initialization; attempted to call method 'option' error in console.

danhumaan commented 8 years ago

Hi @mojbenzcar, the error appears to be relating to fileupload rather than anything with Modaal. A quick google returned a number of different results - have you tried that first, or can you confirm this is an issue directly relating to Modaal?

mojbenzcar commented 8 years ago

thanks @danhumaan I was the fileupload plugin problem fixed it .