summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelle Sebreghts2012-09-07 11:31:28 (GMT)
committerJelle Sebreghts2012-09-07 11:31:28 (GMT)
commit159155eb5feecfbba4eb444c492b303a7c9b0073 (patch)
tree86b7d972544873a84002aedefd1bab41e3b2072f
parenta03581046a82906c6b6c5024d14991f482bf1635 (diff)
JSHint all javascript files
-rw-r--r--webform_multifile.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/webform_multifile.js b/webform_multifile.js
index 9a4949f..989cbee 100644
--- a/webform_multifile.js
+++ b/webform_multifile.js
@@ -1,6 +1,9 @@
+/*jshint strict:true, browser:true, curly:true, eqeqeq:true, expr:true, forin:true, latedef:true, newcap:true, noarg:true, trailing: true, undef:true, unused:true */
+/*global Drupal: true, jQuery: true, MultiFile_fields: true*/
(function ($) {
+ "use strict";
Drupal.behaviors.webform_multifile = {
- attach: function (context) {
+ attach: function () {
// Add the extra brakets to all the Multifile fields
$("input[type=file].multi").once(function(){
@@ -21,5 +24,5 @@
}
}
}
- }
-} (jQuery)); \ No newline at end of file
+ };
+} (jQuery));