CoreFiles by mySites.guru
default-batch-body.js38 lines, 1,054 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
684438a335386ca43ae27c792797bd66
sha1
ad146f409dffaec002f172ebf7d021c95893c865
sha256
fb41cea7b6e119768613eefd8b0178c42984efc7430be35a07021ee45bc960a0
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
(function () {
  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.style.display = 'block';
    } else {
      batchCopyMove.style.display = 'none';
    }
  };

  var onSelect = function onSelect() {
    if (batchMenu) {
      batchSelector = batchMenu;
    }

    if (batchCopyMove) {
      batchSelector.addEventListener('change', onChange);
    } // Cleanup


    document.removeEventListener('DOMContentLoaded', onSelect, true);
  }; // Document loaded


  document.addEventListener('DOMContentLoaded', onSelect, true);
})();

No other release has this exact content. See every version of this file.