META-INF.resources.bower_components.blueimpfileupload.js.jquery.fileupload-jquery-ui.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-blueimp-fileupload Show documentation
Show all versions of jwebmp-blueimp-fileupload Show documentation
File Upload widget with multiple file selection, drag and drop support, progress bar, validation and preview images, audio and video for jQuery.
Supports cross-domain, chunked and resumable file uploads.
Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.
(function(a){if(typeof define==="function"&&define.amd){define(["jquery","./jquery.fileupload-ui"],a)}else{if(typeof exports==="object"){a(require("jquery"),require("./jquery.fileupload-ui"))}else{a(window.jQuery)}}}(function(a){a.widget("blueimp.fileupload",a.blueimp.fileupload,{options:{processdone:function(c,b){b.context.find(".start").button("enable")},progress:function(c,b){if(b.context){b.context.find(".progress").progressbar("option","value",parseInt(b.loaded/b.total*100,10))}},progressall:function(d,b){var c=a(this);c.find(".fileupload-progress").find(".progress").progressbar("option","value",parseInt(b.loaded/b.total*100,10)).end().find(".progress-extended").each(function(){a(this).html((c.data("blueimp-fileupload")||c.data("fileupload"))._renderExtendedProgress(b))})}},_renderUpload:function(e,d){var c=this._super(e,d),b=a(window).width()>480;c.find(".progress").empty().progressbar();c.find(".start").button({icons:{primary:"ui-icon-circle-arrow-e"},text:b});c.find(".cancel").button({icons:{primary:"ui-icon-cancel"},text:b});if(c.hasClass("fade")){c.hide()}return c},_renderDownload:function(e,d){var c=this._super(e,d),b=a(window).width()>480;c.find(".delete").button({icons:{primary:"ui-icon-trash"},text:b});if(c.hasClass("fade")){c.hide()}return c},_startHandler:function(b){a(b.currentTarget).button("disable");this._super(b)},_transition:function(c){var b=a.Deferred();if(c.hasClass("fade")){c.fadeToggle(this.options.transitionDuration,this.options.transitionEasing,function(){b.resolveWith(c)})}else{b.resolveWith(c)}return b},_create:function(){this._super();this.element.find(".fileupload-buttonbar").find(".fileinput-button").each(function(){var b=a(this).find("input:file").detach();a(this).button({icons:{primary:"ui-icon-plusthick"}}).append(b)}).end().find(".start").button({icons:{primary:"ui-icon-circle-arrow-e"}}).end().find(".cancel").button({icons:{primary:"ui-icon-cancel"}}).end().find(".delete").button({icons:{primary:"ui-icon-trash"}}).end().find(".progress").progressbar()},_destroy:function(){this.element.find(".fileupload-buttonbar").find(".fileinput-button").each(function(){var b=a(this).find("input:file").detach();a(this).button("destroy").append(b)}).end().find(".start").button("destroy").end().find(".cancel").button("destroy").end().find(".delete").button("destroy").end().find(".progress").progressbar("destroy");this._super()}})}));
© 2015 - 2025 Weber Informatics LLC | Privacy Policy