summaryrefslogtreecommitdiffstats
path: root/core/modules/block/js/block.admin.es6.js
diff options
context:
space:
mode:
authorwebchick2017-11-30 20:29:41 (GMT)
committerwebchick2017-11-30 20:30:36 (GMT)
commit9b874acf9f12f385c1ba684efee9cc21c73db442 (patch)
treeac55bc69e9ce0e23eba7cb5d40970147f42ac07a /core/modules/block/js/block.admin.es6.js
parent9bcfe6d59f16720eb7e536cca6a4f852174fac16 (diff)
Issue #2915784 by dawehner, drpal, justafish, tedbow, xjm: 1/3 JS codestyle: camelcase
Diffstat (limited to 'core/modules/block/js/block.admin.es6.js')
-rw-r--r--core/modules/block/js/block.admin.es6.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/block/js/block.admin.es6.js b/core/modules/block/js/block.admin.es6.js
index 86a3e36..780ea12 100644
--- a/core/modules/block/js/block.admin.es6.js
+++ b/core/modules/block/js/block.admin.es6.js
@@ -24,7 +24,7 @@
attach(context, settings) {
const $input = $('input.block-filter-text').once('block-filter-text');
const $table = $($input.attr('data-element'));
- let $filter_rows;
+ let $filterRows;
/**
* Filters the block list.
@@ -52,7 +52,7 @@
// Filter if the length of the query is at least 2 characters.
if (query.length >= 2) {
- $filter_rows.each(toggleBlockEntry);
+ $filterRows.each(toggleBlockEntry);
Drupal.announce(
Drupal.formatPlural(
$table.find('tr:visible').length - 1,
@@ -62,14 +62,14 @@
);
}
else {
- $filter_rows.each(function (index) {
+ $filterRows.each(function (index) {
$(this).parent().parent().show();
});
}
}
if ($table.length) {
- $filter_rows = $table.find('div.block-filter-text-source');
+ $filterRows = $table.find('div.block-filter-text-source');
$input.on('keyup', debounce(filterBlockList, 200));
}
},