MiraitSystems/enju_trunk

View on GitHub
app/assets/javascripts/jquery.upload-1.0.2.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function upload has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.upload = function(url, data, callback, type) {
        var self = this, inputs, checkbox, checked,
            iframeName = 'jquery_upload' + ++uuid,
            iframe = $('<iframe name="' + iframeName + '" style="position:absolute;top:-9999px" />').appendTo('body'),
            form = '<form target="' + iframeName + '" method="post" enctype="multipart/form-data" />';
Severity: Minor
Found in app/assets/javascripts/jquery.upload-1.0.2.js - About 1 hr to fix

    Function param has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function param(data) {
            if ($.isArray(data)) {
                return data;
            }
            var params = [];
    Severity: Minor
    Found in app/assets/javascripts/jquery.upload-1.0.2.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status