Skip to content
Snippets Groups Projects
Commit dcc64e37 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#61954 by nedjo, Remove unneeded lines in upload.js

parent 33cac642
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -9,7 +9,6 @@ if (isJsEnabled()) { ...@@ -9,7 +9,6 @@ if (isJsEnabled()) {
* Attaches the upload behaviour to the upload form. * Attaches the upload behaviour to the upload form.
*/ */
function uploadAutoAttach() { function uploadAutoAttach() {
var acdb = [];
var inputs = document.getElementsByTagName('input'); var inputs = document.getElementsByTagName('input');
for (i = 0; input = inputs[i]; i++) { for (i = 0; input = inputs[i]; i++) {
if (input && hasClass(input, 'upload')) { if (input && hasClass(input, 'upload')) {
...@@ -27,7 +26,6 @@ function uploadAutoAttach() { ...@@ -27,7 +26,6 @@ function uploadAutoAttach() {
* JS upload object. * JS upload object.
*/ */
function jsUpload(uri, button, wrapper, hide) { function jsUpload(uri, button, wrapper, hide) {
var upload = this;
this.button = button; this.button = button;
this.wrapper = wrapper; this.wrapper = wrapper;
this.hide = hide; this.hide = hide;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment