CoreFiles by mySites.guru
default-batch-body.js22 lines, 689 bytes, from Joomla_5.2.3-Stable-Full_Package.zip
Raw History Compare with 5.2.2
md5
c8807bef9d9f94c05564a0283c02b34b
sha1
e40ba1ddb718ef12e28e844e118531cfe8479f36
sha256
25d9783303082a935dddc7c4587d2c03b46ba666c242f972581cd12a97fc9c99
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
(document => {
  const batchMenu = document.getElementById('batch-menu-id');
  const batchCopyMove = document.getElementById('batch-copy-move');
  let batchSelector;
  const onChange = () => {
    if (batchSelector.value !== 0 || batchSelector.value !== '') {
      batchCopyMove.classList.remove('hidden');
    } else {
      batchCopyMove.classList.add('hidden');
    }
  };
  if (batchMenu) {
    batchSelector = batchMenu;
  }
  if (batchCopyMove) {
    batchSelector.addEventListener('change', onChange);
  }
})(document);

The same content is in 214 releases, Joomla 4.3.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.