Skip to content

Commit 811678c

Browse files
author
peterwake
committed
Update assets to jQuery-File-Upload v9.12.5
1 parent b293be1 commit 811678c

15 files changed

+30
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jquery-fileupload-rails is a library that integrates jQuery File Upload for Rail
66

77
## Plugin versions
88

9-
* jQuery File Upload Plugin v9.11.2
9+
* jQuery File Upload Plugin v9.12.5
1010

1111
## Installing Gem
1212

@@ -75,7 +75,7 @@ The `jquery.iframe-transport` fallback transport has some special caveats regard
7575
Rails.application.config.middleware.use JQuery::FileUpload::Rails::Middleware
7676

7777
## Example apps
78-
[jquery-fileupload-rails-paperclip-example](https://github.com/tors/jquery-fileupload-rails-paperclip-example): jQuery File Upload in Rails 3.2 with Paperclip and Bootstrap
78+
[jquery-fileupload-rails-paperclip-example](https://github.com/tors/jquery-fileupload-rails-paperclip-example): jQuery File Upload in Rails 3.2 with Paperclip and Bootstrap
7979

8080
[rails-resumable-jquery-fileupload](https://github.com/vgantchev/rails-resumable-jquery-fileupload): resumable (chunked) uploads with jQuery File Upload in Rails 4.2 using Paperclip
8181

app/assets/javascripts/jquery-fileupload/cors/jquery.postmessage-transport.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* global define, require, window, document */
1313

14-
(function (factory) {
14+
;(function (factory) {
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:
@@ -64,6 +64,12 @@
6464
loc = $('<a>').prop('href', options.postMessage)[0],
6565
target = loc.protocol + '//' + loc.host,
6666
xhrUpload = options.xhr().upload;
67+
// IE always includes the port for the host property of a link
68+
// element, but not in the location.host or origin property for the
69+
// default http port 80 and https port 443, so we strip it:
70+
if (/^(http:\/\/.+:80)|(https:\/\/.+:443)$/.test(target)) {
71+
target = target.replace(/:(80|443)$/, '');
72+
}
6773
return {
6874
send: function (_, completeCallback) {
6975
counter += 1;

app/assets/javascripts/jquery-fileupload/cors/jquery.xdr-transport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/* global define, require, window, XDomainRequest */
1616

17-
(function (factory) {
17+
;(function (factory) {
1818
'use strict';
1919
if (typeof define === 'function' && define.amd) {
2020
// Register as an anonymous AMD module:

app/assets/javascripts/jquery-fileupload/jquery.fileupload-angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, angular */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:

app/assets/javascripts/jquery-fileupload/jquery.fileupload-audio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, require, window, document */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:

app/assets/javascripts/jquery-fileupload/jquery.fileupload-image.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, require, window, Blob */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:
@@ -21,7 +21,6 @@
2121
'load-image',
2222
'load-image-meta',
2323
'load-image-exif',
24-
'load-image-ios',
2524
'canvas-to-blob',
2625
'./jquery.fileupload-process'
2726
], factory);

app/assets/javascripts/jquery-fileupload/jquery.fileupload-jquery-ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, require, window */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:

app/assets/javascripts/jquery-fileupload/jquery.fileupload-process.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, require, window */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:
@@ -84,7 +84,7 @@
8484
settings
8585
);
8686
};
87-
chain = chain.pipe(func, settings.always && func);
87+
chain = chain.then(func, settings.always && func);
8888
});
8989
chain
9090
.done(function () {
@@ -151,7 +151,7 @@
151151
};
152152
opts.index = index;
153153
that._processing += 1;
154-
that._processingQueue = that._processingQueue.pipe(func, func)
154+
that._processingQueue = that._processingQueue.then(func, func)
155155
.always(function () {
156156
that._processing -= 1;
157157
if (that._processing === 0) {

app/assets/javascripts/jquery-fileupload/jquery.fileupload-ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* jshint nomen:false */
1313
/* global define, require, window */
1414

15-
(function (factory) {
15+
;(function (factory) {
1616
'use strict';
1717
if (typeof define === 'function' && define.amd) {
1818
// Register as an anonymous AMD module:

app/assets/javascripts/jquery-fileupload/jquery.fileupload-validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* global define, require, window */
1313

14-
(function (factory) {
14+
;(function (factory) {
1515
'use strict';
1616
if (typeof define === 'function' && define.amd) {
1717
// Register as an anonymous AMD module:

0 commit comments

Comments
 (0)