summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorAlex Pott2017-10-12 10:13:43 (GMT)
committerAlex Pott2017-10-12 10:13:43 (GMT)
commitb61c2592f0f901953dc607eca2e4b671ad39e43b (patch)
tree48e92c4455253984010c1c4bd351be17241636aa /core/modules/views_ui
parent8dc500997040cc3bde8a8e93f37f9bd4317425b3 (diff)
Issue #2915526 by drpal: JS codestyle: prefer-const
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/js/views-admin.es6.js3
-rw-r--r--core/modules/views_ui/js/views-admin.js3
2 files changed, 2 insertions, 4 deletions
diff --git a/core/modules/views_ui/js/views-admin.es6.js b/core/modules/views_ui/js/views-admin.es6.js
index ed1503e..9866f9f 100644
--- a/core/modules/views_ui/js/views-admin.es6.js
+++ b/core/modules/views_ui/js/views-admin.es6.js
@@ -760,7 +760,6 @@
* An operator element.
*/
duplicateGroupsOperator() {
- let dropdowns;
let newRow;
let titleRow;
@@ -777,7 +776,7 @@
// Keep a list of the operator dropdowns, so we can sync their behavior
// later.
- dropdowns = this.operator;
+ const dropdowns = this.operator;
// Move the operator to a new row just above the second group.
titleRow = $('tr#views-group-title-2');
diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js
index 10fa430..032db56 100644
--- a/core/modules/views_ui/js/views-admin.js
+++ b/core/modules/views_ui/js/views-admin.js
@@ -372,7 +372,6 @@
event.preventDefault();
},
duplicateGroupsOperator: function duplicateGroupsOperator() {
- var dropdowns = void 0;
var newRow = void 0;
var titleRow = void 0;
@@ -385,7 +384,7 @@
this.operator.find('label').add('div.description').addClass('visually-hidden');
this.operator.find('select').addClass('form-select');
- dropdowns = this.operator;
+ var dropdowns = this.operator;
titleRow = $('tr#views-group-title-2');
newRow = $('<tr class="filter-group-operator-row"><td colspan="5"></td></tr>');