quirkey / sammy

Sammy is a tiny javascript framework built on top of jQuery, It's RESTful Evented Javascript.
http://sammyjs.org
MIT License
2.99k stars 384 forks source link

Including Sammy breaks jquery fileupload #232

Closed mgregory22 closed 9 years ago

mgregory22 commented 9 years ago

When I include Sammy on my page, I can no longer select a file for the Jquery FileUpload [https://github.com/blueimp/jQuery-File-Upload] plugin. The file selection dialog pops up, but when I hit OK, it doesn' t show the file name I selected and clicking the upload button doesn't do anything. There's no error reported in the console.

If I remove the <script src="/Scripts/sammy-0.7.5.js"></script> tag, it works fine. Or if I remove this code it works fine:

    $(function() {
        // Initialize the jQuery File Upload widget:
        $('#fileupload').fileupload({
            url: '/AnimatedGifs/FileHandler',
            acceptFileTypes: /gif$/i, // Allowed file types
        });
    });

I've tried calling $.noConflict() and replacing all the $'s to jQuery, but that didn't have any effect.

endor commented 9 years ago

Can't really reproduce. If you set up a sample repository, I can help you debug this.

mgregory22 commented 9 years ago

Gah! As I was setting up the sample project, it started working for some reason. Thanks anyway for the reply! Sorry for wasting your time!