Commit 0e9422a3 authored by xjm's avatar xjm

Issue #2793349 by nod_, droplet: Fix eslint errors

parent f03979cc
......@@ -498,6 +498,9 @@
var keyChange = false;
var groupHeight;
/* eslint-disable no-fallthrough */
switch (event.keyCode) {
// Left arrow.
case 37:
......@@ -601,6 +604,8 @@
break;
}
/* eslint-enable no-fallthrough */
if (self.rowObject && self.rowObject.changed === true) {
$(item).addClass('drag');
if (self.oldRowElement) {
......@@ -624,6 +629,9 @@
// other browsers need to return false on keypress.
// http://www.quirksmode.org/js/keys.html
handle.on('keypress', function (event) {
/* eslint-disable no-fallthrough */
switch (event.keyCode) {
// Left arrow.
case 37:
......@@ -635,6 +643,9 @@
case 40:
return false;
}
/* eslint-enable no-fallthrough */
});
};
......
......@@ -125,7 +125,7 @@
});
var search = Drupal.ajax.WRAPPER_FORMAT + '=drupal_dialog';
var replace = Drupal.ajax.WRAPPER_FORMAT + '=drupal_dialog_offcanvas';
var replace = Drupal.ajax.WRAPPER_FORMAT + '=drupal_dialog_offcanvas';
// Loop through all Ajax links and change the format to offcanvas when
// needed.
Drupal.ajax.instances
......@@ -142,7 +142,7 @@
.forEach(function (instance) {
// @todo Move logic for data-dialog-renderer attribute into ajax.js
// https://www.drupal.org/node/2784443
instance.options.url = instance.options.url.replace(search, replace);
instance.options.url = instance.options.url.replace(search, replace);
});
}
};
......
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