From 459677a1683e92cca8b5f5b46f3feacd0dfcd878 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Sat, 4 Apr 2020 00:44:44 -0600 Subject: [PATCH] Code cleanup left over from #4311 --- modules/backend/formwidgets/fileupload/assets/js/fileupload.js | 3 --- .../backend/formwidgets/fileupload/partials/_file_multi.htm | 1 - .../backend/formwidgets/fileupload/partials/_file_single.htm | 1 - .../backend/formwidgets/fileupload/partials/_image_multi.htm | 1 - .../backend/formwidgets/fileupload/partials/_image_single.htm | 1 - 5 files changed, 7 deletions(-) diff --git a/modules/backend/formwidgets/fileupload/assets/js/fileupload.js b/modules/backend/formwidgets/fileupload/assets/js/fileupload.js index 88b4cd474..021fcab97 100644 --- a/modules/backend/formwidgets/fileupload/assets/js/fileupload.js +++ b/modules/backend/formwidgets/fileupload/assets/js/fileupload.js @@ -3,8 +3,6 @@ * * Data attributes: * - data-control="fileupload" - enables the file upload plugin - * - data-unique-id="XXX" - an optional identifier for multiple uploaders on the same page, this value will - * appear in the postback variable called X_OCTOBER_FILEUPLOAD * - data-template - a Dropzone.js template to use for each item * - data-error-template - a popover template used to show an error * - data-sort-handler - AJAX handler for sorting postbacks @@ -430,7 +428,6 @@ uploadHandler: null, configHandler: null, sortHandler: null, - uniqueId: null, extraData: {}, paramName: 'file_data', fileTypes: null, diff --git a/modules/backend/formwidgets/fileupload/partials/_file_multi.htm b/modules/backend/formwidgets/fileupload/partials/_file_multi.htm index 186f03abb..a758bed99 100644 --- a/modules/backend/formwidgets/fileupload/partials/_file_multi.htm +++ b/modules/backend/formwidgets/fileupload/partials/_file_multi.htm @@ -6,7 +6,6 @@ data-template="#getId('template') ?>" data-error-template="#getId('errorTemplate') ?>" data-sort-handler="getEventHandler('onSortAttachments') ?>" - data-unique-id="getId() ?>" data-max-filesize="" data-config-handler="getEventHandler('onLoadAttachmentConfig') ?>" data-file-types="" diff --git a/modules/backend/formwidgets/fileupload/partials/_file_single.htm b/modules/backend/formwidgets/fileupload/partials/_file_single.htm index 1f29ff0b6..b38e0835b 100644 --- a/modules/backend/formwidgets/fileupload/partials/_file_single.htm +++ b/modules/backend/formwidgets/fileupload/partials/_file_single.htm @@ -5,7 +5,6 @@ data-upload-handler="getEventHandler('onUpload') ?>" data-template="#getId('template') ?>" data-error-template="#getId('errorTemplate') ?>" - data-unique-id="getId() ?>" data-max-filesize="" data-config-handler="getEventHandler('onLoadAttachmentConfig') ?>" data-file-types="" diff --git a/modules/backend/formwidgets/fileupload/partials/_image_multi.htm b/modules/backend/formwidgets/fileupload/partials/_image_multi.htm index 32b3fa5a8..e5ae76334 100644 --- a/modules/backend/formwidgets/fileupload/partials/_image_multi.htm +++ b/modules/backend/formwidgets/fileupload/partials/_image_multi.htm @@ -6,7 +6,6 @@ data-template="#getId('template') ?>" data-error-template="#getId('errorTemplate') ?>" data-sort-handler="getEventHandler('onSortAttachments') ?>" - data-unique-id="getId() ?>" data-max-filesize="" data-config-handler="getEventHandler('onLoadAttachmentConfig') ?>" data-file-types="" diff --git a/modules/backend/formwidgets/fileupload/partials/_image_single.htm b/modules/backend/formwidgets/fileupload/partials/_image_single.htm index 620f1ce82..a9cba6b03 100644 --- a/modules/backend/formwidgets/fileupload/partials/_image_single.htm +++ b/modules/backend/formwidgets/fileupload/partials/_image_single.htm @@ -5,7 +5,6 @@ data-upload-handler="getEventHandler('onUpload') ?>" data-template="#getId('template') ?>" data-error-template="#getId('errorTemplate') ?>" - data-unique-id="getId() ?>" data-thumbnail-width="" data-thumbnail-height="" data-max-filesize=""