Commit f6e6e528 authored by alexpott's avatar alexpott

Issue #2179655 followup by droplet: JS file validation broken.

parent 0230aa22
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* prevents separate file fields from accidentally uploading files). * prevents separate file fields from accidentally uploading files).
*/ */
(function ($) { (function ($, Drupal) {
"use strict"; "use strict";
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
Drupal.behaviors.fileValidateAutoAttach = { Drupal.behaviors.fileValidateAutoAttach = {
attach: function (context, settings) { attach: function (context, settings) {
var $context = $(context); var $context = $(context);
var validateExtension = Drupal.file.validateExtension;
var elements; var elements;
function initFileValidation (selector) { function initFileValidation (selector) {
...@@ -33,7 +32,6 @@ ...@@ -33,7 +32,6 @@
}, },
detach: function (context, settings, trigger) { detach: function (context, settings, trigger) {
var $context = $(context); var $context = $(context);
var validateExtension = Drupal.file.validateExtension;
var elements; var elements;
function removeFileValidation (selector) { function removeFileValidation (selector) {
...@@ -195,4 +193,4 @@ ...@@ -195,4 +193,4 @@
} }
}; };
})(jQuery); })(jQuery, Drupal);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment