CoreFiles by mySites.guru
admin-fields-default-batch.js23 lines, 770 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
f4e6ef50f3fbadb11b7816993fc19173
sha1
f83023ead1ec9260a95cba3ea3d67a683860e669
sha256
4ef0c915930d5cba403aa2630325ff0bc8616b41c240789e8a1abbd5686dc854
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
const setUp = container => {
  const batchSelector = container.getElementById('batch-group-id');
  const batchCopyMove = container.getElementById('batch-copy-move');
  if (!container || !batchCopyMove) {
    return;
  }
  batchCopyMove.classList.add('hidden');
  batchSelector.addEventListener('change', () => {
    if (batchSelector.value === 'nogroup' || batchSelector.value !== '') {
      batchCopyMove.classList.remove('hidden');
    } else {
      batchCopyMove.classList.add('hidden');
    }
  }, false);
};
setUp(document);
document.addEventListener('joomla:loaded', ({
  target
}) => setUp(target));

The same content is in 137 releases, Joomla 5.1.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.