[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_menus/js/ -> default-batch-body-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license    GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    (function (document) {
   9      var batchMenu = document.getElementById('batch-menu-id');
  10      var batchCopyMove = document.getElementById('batch-copy-move');
  11      var batchSelector;
  12  
  13      var onChange = function onChange() {
  14        if (batchSelector.value !== 0 || batchSelector.value !== '') {
  15          batchCopyMove.classList.remove('hidden');
  16        } else {
  17          batchCopyMove.classList.add('hidden');
  18        }
  19      };
  20  
  21      if (batchMenu) {
  22        batchSelector = batchMenu;
  23      }
  24  
  25      if (batchCopyMove) {
  26        batchSelector.addEventListener('change', onChange);
  27      }
  28    })(document);
  29  
  30  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer