aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js6
-rw-r--r--web/js/lazyload.js2
2 files changed, 6 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index d6ea9de18..be8500729 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -112,8 +112,9 @@ function isR2L() {
},
make_multi: function() {
- // A convenience wrapper around $.multiSelect() that translates HTML
- // data-* attributes into settings for the multiSelect constructor.
+ // A convenience wrapper around $.multiSelect() that translates HTML
+ // data-* attributes into settings for the multiSelect constructor.
+ return this.each(function() {
var $select = $(this);
var settings = {};
@@ -144,6 +145,7 @@ function isR2L() {
}
$select.multiSelect(settings);
+ });
}
});
diff --git a/web/js/lazyload.js b/web/js/lazyload.js
index 50cc8c46e..770fc62d4 100644
--- a/web/js/lazyload.js
+++ b/web/js/lazyload.js
@@ -1,3 +1,5 @@
+// jshint esversion: 6
+
(function(){
if (!('IntersectionObserver' in window)) {
return;