jquery.fileupload-ui.js

About this file

Refer to jQuery's file upload user interface plugin. See extracted documentation for GitHub link.

Code Check Report




  133:19  warning  Method 'send' has a complexity of 7  complexity
  416:34  error    Empty block statement                no-empty

✖ 2 problems (1 error, 1 warning)
                        

Documentation drawn from source code

/*
* jQuery File Upload User Interface Plugin 9.6.0
*
* Copyright 2010, Sebastian Tschan
*
* Licensed under the MIT license:
*/
/* jshint nomen:false */
/* global define, window */
(function (factory) {
  if (typeof define === 'function' && define.amd) {
}(function ($, tmpl) {
    getNumberOfFiles: function () {
    getFilesFromResponse: function (data) {
    add: function (e, data) {
     data.process(function () {
     }).always(function () {
      data.context.each(function (index) {
     }).done(function () {
     }).fail(function () {
       data.context.each(function (index) {
    send: function (e, data) {
    done: function (e, data) {
      data.context.each(function (index) {
        function () {
          function () {
       function () {
    fail: function (e, data) {
      data.context.each(function (index) {
         function () {
           function () {
         function () {
       function () {
    progress: function (e, data) {
      data.context.each(function () {
    progressall: function (e, data) {
    start: function (e) {
      function () {
    stop: function (e) {
      .done(function () {
      function () {
    processstart: function (e) {
    processstop: function (e) {
    destroy: function (e, data) {
      removeNode = function () {
        function () {
      $.ajax(data).done(removeNode).fail(function () {
   _resetFinishedDeferreds: function () {
   _addFinishedDeferreds: function (deferred) {
   _getFinishedDeferreds: function () {
   _enableDragToDesktop: function () {
    link.bind('dragstart', function (e) {
   _formatFileSize: function (bytes) {
   _formatBitrate: function (bits) {
   _formatTime: function (seconds) {
   _formatPercentage: function (floatValue) {
   _renderExtendedProgress: function (data) {
   _renderTemplate: function (func, files) {
   _renderPreviews: function (data) {
    data.context.find('.preview').each(function (index, elm) {
   _renderUpload: function (files) {
   _renderDownload: function (files) {
   _startHandler: function (e) {
   _cancelHandler: function (e) {
   _deleteHandler: function (e) {
   _forceReflow: function (node) {
   _transition: function (node) {
      function (e) {
   _initButtonBarEventHandlers: function () {
     click: function (e) {
     click: function (e) {
     click: function (e) {
     change: function (e) {
   _destroyButtonBarEventHandlers: function () {
   _initEventHandlers: function () {
   _destroyEventHandlers: function () {
   _enableFileInputButton: function () {
   _disableFileInputButton: function () {
   _initTemplates: function () {
   _initFilesContainer: function () {
   _initSpecialOptions: function () {
   _create: function () {
   enable: function () {
   disable: function () {

Source code