Issue #3388597: Run eslint and enable linting on GitLabCI
2 unresolved threads
Merge request reports
Activity
1 (function ($) { 1 // Find our targets and set as variables. 2 const massEdit = document.getElementsByClassName( 3 'js-form-item-editors-add-mass', 4 ); 5 const addEdit = document.getElementsByClassName('js-form-item-editors-add'); 2 6 3 'use strict'; 7 const mass = massEdit[0]; 8 const auto = addEdit[0]; 4 9 - Comment on lines +1 to 9
1 // Find our targets and set as variables. 2 const massEdit = document.getElementsByClassName( 3 'js-form-item-editors-add-mass', 4 ); 5 const addEdit = document.getElementsByClassName('js-form-item-editors-add'); 6 7 const mass = massEdit[0]; 8 const auto = addEdit[0]; 9 1 // Find our targets and set as variables. 2 const mass = document.querySelector('.js-form-item-editors-add-mass'); 3 const auto = document.querySelector('.js-form-item-editors-add'); 4 changed this line in version 4 of the diff
8 const auto = addEdit[0]; 4 9 5 Drupal.behaviors.workbenchAccess = { 6 attach: function (context, settings) { 7 $(once('field-switch', '#edit-add', context)).each(function () { 8 // We hide mass assign. 9 $('.js-form-item-editors-add-mass').hide(); 10 $(this).find('.switch').click(function (e) { 11 e.preventDefault(); 12 $('.js-form-item-editors-add').toggle(); 13 $('.js-form-item-editors-add-mass').toggle(); 14 }) 15 }); 16 } 17 }; 10 function toggleItem(e) { changed this line in version 4 of the diff
- Resolved by Ken Rickard
- Resolved by Ken Rickard
added 5 commits
-
4f50a198...e15134cc - 4 commits from branch
project:2.0.x
- 18b7c974 - Merge in 2.0.x
-
4f50a198...e15134cc - 4 commits from branch
added 2 commits
Please register or sign in to reply