Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
remove deprecated options: uploadScript and formData
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Jun 9, 2015
1 parent 628ec61 commit 8020850
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/js/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
addonName = 'Images', // first char is uppercase
defaults = {
label: '<span class="fa fa-camera"></span>',
uploadScript: null, // DEPRECATED: Use fileUploadOptions instead
deleteScript: 'delete.php',
preview: true,
captions: true,
captionPlaceholder: 'Type caption for image (optional)',
autoGrid: 3,
formData: null, // DEPRECATED: Use fileUploadOptions instead
fileUploadOptions: { // See https://github.com/blueimp/jQuery-File-Upload/wiki/Options
url: 'upload.php',
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
Expand Down Expand Up @@ -201,16 +199,6 @@
}
};

// Backwards compatibility
if (this.options.uploadScript) {
fileUploadOptions.url = this.options.uploadScript;
Util.deprecated('uploadScript', 'fileUploadOptions', '2.0');
}
if (this.options.formData) {
fileUploadOptions.formData = this.options.formData;
Util.deprecated('formData', 'fileUploadOptions', '2.0');
}

// Only add progress callbacks for browsers that support XHR2,
// and test for XHR2 per:
// http://stackoverflow.com/questions/6767887/
Expand Down

0 comments on commit 8020850

Please sign in to comment.