Commit e4d6d968 authored by alexpott's avatar alexpott

Issue #2914715 by droplet: JS codestyle: no-confusing-arrow

parent a2a199a7
......@@ -14,7 +14,6 @@
"no-lonely-if": "off",
"no-empty": "off",
"no-continue": "off",
"no-confusing-arrow": "off",
"newline-per-chained-call": "off",
"new-cap": "off",
"max-len": "off",
......
......@@ -52,7 +52,7 @@
// Attach summary for configurable filters (only for screen readers).
if (filterSettingsTab) {
filterSettingsTab.details.drupalSetSummary(tabContext => $checkbox.is(':checked') ? Drupal.t('Enabled') : Drupal.t('Disabled'));
filterSettingsTab.details.drupalSetSummary(() => ($checkbox.is(':checked') ? Drupal.t('Enabled') : Drupal.t('Disabled')));
}
// Trigger our bound click handler to update elements to initial state.
......
......@@ -38,7 +38,7 @@
});
if (filterSettingsTab) {
filterSettingsTab.details.drupalSetSummary(function (tabContext) {
filterSettingsTab.details.drupalSetSummary(function () {
return $checkbox.is(':checked') ? Drupal.t('Enabled') : Drupal.t('Disabled');
});
}
......
......@@ -34,7 +34,7 @@
*/
function dateFormatHandler(e) {
const baseValue = $(e.target).val() || '';
const dateString = baseValue.replace(/\\?(.?)/gi, (key, value) => dateFormats[key] ? dateFormats[key] : value);
const dateString = baseValue.replace(/\\?(.?)/gi, (key, value) => (dateFormats[key] ? dateFormats[key] : value));
$preview.html(dateString);
$target.toggleClass('js-hide', !dateString.length);
......
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