Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views_ui / js / views-admin.js
index 10fa4307df2deb06788ed0c30b02a5ec5b2b5b13..1b175d1df3d0f462f9b263629b4b76209e49b4bc 100644 (file)
       event.preventDefault();
     },
     duplicateGroupsOperator: function duplicateGroupsOperator() {
-      var dropdowns = void 0;
       var newRow = void 0;
       var titleRow = void 0;
 
       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>');
       $(context).find('[data-drupal-selector="edit-override-dropdown"]').once('views-ui-override-button-text').each(function () {
         var $context = $(context);
         var $submit = $context.find('[id^=edit-submit]');
-        var old_value = $submit.val();
+        var oldValue = $submit.val();
 
         $submit.once('views-ui-override-button-text').on('mouseup', function () {
-          $(this).val(old_value);
+          $(this).val(oldValue);
           return true;
         });