CoreFiles by mySites.guru
admin-fields-default-batch.es6.js18 lines, 626 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
6213f931331e4f8492e5003006d5d63c
sha1
05947b0e16e6c25bf559bc920ad51ebf975e8c99
sha256
0126a2a4b1986cefb9d6f0a29a64f3aa79787823690cf9b3c0ed7d83d17272e1
/**
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

document.addEventListener('DOMContentLoaded', () => {
  const batchSelector = document.getElementById('batch-group-id');
  const batchCopyMove = document.getElementById('batch-copy-move');
  batchCopyMove.style.display = 'none';

  batchSelector.addEventListener('change', () => {
    if (batchSelector.value === 'nogroup') {
      batchCopyMove.style.display = 'block';
    } else {
      batchCopyMove.style.display = 'none';
    }
  }, false);
});

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.