diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js index 3cc0f4c..3627fd2 100644 --- a/core/modules/views_ui/js/views-admin.js +++ b/core/modules/views_ui/js/views-admin.js @@ -764,7 +764,7 @@ duplicateGroupsOperator: function () { var dropdowns; var newRow; - var titleRow; + var $titleRow; var titleRows = $('tr.views-group-title').once('duplicateGroupsOperator'); @@ -782,21 +782,21 @@ dropdowns = this.operator; // Move the operator to a new row just above the second group. - titleRow = $('tr#views-group-title-2'); + $titleRow = $('tr#views-group-title-2'); newRow = $(''); newRow.find('td').append(this.operator); - newRow.insertBefore(titleRow); + newRow.insertBefore($titleRow); var length = titleRows.length; // Starting with the third group, copy the operator to a new row above the // group title. for (var i = 2; i < length; i++) { - titleRow = $(titleRows[i]); + $titleRow = $(titleRows[i]); // Make a copy of the operator dropdown and put it in a new table row. var fakeOperator = this.operator.clone(); fakeOperator.attr('id', ''); newRow = $(''); newRow.find('td').append(fakeOperator); - newRow.insertBefore(titleRow); + newRow.insertBefore($titleRow); dropdowns.add(fakeOperator); } @@ -856,11 +856,11 @@ // Make sure the row that just got moved (this.group) is inside one // of the filter groups (i.e. below an empty marker row or a // draggable). If it isn't, move it down one. - var thisRow = $(this.group); - var previousRow = thisRow.prev('tr'); + var $thisRow = $(this.group); + var previousRow = $thisRow.prev('tr'); if (previousRow.length && !previousRow.hasClass('group-message') && !previousRow.hasClass('draggable')) { // Move the dragged row down one. - var next = thisRow.next(); + var next = $thisRow.next(); if (next.is('tr')) { this.swap('after', next); }