Commit f6e6e528 authored by alexpott's avatar alexpott

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

parent 0230aa22
......@@ -7,7 +7,7 @@
* prevents separate file fields from accidentally uploading files).
*/
(function ($) {
(function ($, Drupal) {
"use strict";
......@@ -17,7 +17,6 @@
Drupal.behaviors.fileValidateAutoAttach = {
attach: function (context, settings) {
var $context = $(context);
var validateExtension = Drupal.file.validateExtension;
var elements;
function initFileValidation (selector) {
......@@ -33,7 +32,6 @@
},
detach: function (context, settings, trigger) {
var $context = $(context);
var validateExtension = Drupal.file.validateExtension;
var elements;
function removeFileValidation (selector) {
......@@ -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