diff --git a/www/include/js/tests/jquery.Upload.js.html b/www/include/js/tests/jquery.Upload.js.html new file mode 100644 index 0000000000..4c516d5227 --- /dev/null +++ b/www/include/js/tests/jquery.Upload.js.html @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + +

QUnit example

+

+
+

+
    +
    test markup, will be hidden
    + +
    +

    +
    +
    +
    + + + diff --git a/www/prod/jquery.Upload.js b/www/prod/jquery.Upload.js new file mode 100644 index 0000000000..a30a8f918a --- /dev/null +++ b/www/prod/jquery.Upload.js @@ -0,0 +1,244 @@ +; +var p4 = p4 || {}; + +; +(function(p4, $){ + + /** + * UPLOADER MANAGER + */ + var UploaderManager = function(options){ + + var options = options || {}; + + if(false === ("container" in options)){ + throw "missing container parameter"; + } + else if(! options.container.jquery){ + throw "container parameter must be a jquery dom element"; + } + + if(false === ("settingsBox" in options)){ + throw "missing settingBox parameter"; + } + else if(! options.settingsBox.jquery){ + throw "container parameter must be a jquery dom element"; + } + + if(false === ("uploadBox" in options)){ + throw "missing uploadBox parameter"; + } + else if(! options.uploadBox.jquery){ + throw "container parameter must be a jquery dom element"; + } + + if(false === ("downloadBox" in options)){ + throw "missing downloadBox parameter"; + } + else if(! options.downloadBox.jquery){ + throw "container parameter must be a jquery dom element"; + } + + this.recordClass = options.recordClass || 'upload-record'; + + this.options = options; + + this.options.uploadBox.wrapInner('