CoreFiles by mySites.guru
default-batch-body-es5.js27 lines, 788 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
99035ba45932bd8e51a7f520e4eac495
sha1
5faa6cc3e87afabdd740075ddb50e538dba22eb4
sha256
1fefcc22d7b9a0aae30290fd405b0a10cd6342130b8ff9d29dd25d3cebd6f4dd
(function () {
  'use strict';

  /**
   * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  (function (document) {
    var batchMenu = document.getElementById('batch-menu-id');
    var batchCopyMove = document.getElementById('batch-copy-move');
    var batchSelector;
    var onChange = function 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 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.