[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
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 () { 9 var onSelect = function onSelect() { 10 var batchCategory = document.getElementById('batch-category-id'); 11 var batchMenu = document.getElementById('batch-menu-id'); 12 var batchPosition = document.getElementById('batch-position-id'); 13 var batchGroup = document.getElementById('batch-group-id'); 14 var batchCopyMove = document.getElementById('batch-copy-move'); 15 var batchSelector; 16 17 var onChange = function onChange() { 18 if (!batchSelector.value || batchSelector.value && parseInt(batchSelector.value, 10) === 0) { 19 batchCopyMove.classList.add('hidden'); 20 } else { 21 batchCopyMove.classList.remove('hidden'); 22 } 23 }; 24 25 if (batchCategory) { 26 batchSelector = batchCategory; 27 } 28 29 if (batchMenu) { 30 batchSelector = batchMenu; 31 } 32 33 if (batchPosition) { 34 batchSelector = batchPosition; 35 } 36 37 if (batchGroup) { 38 batchSelector = batchGroup; 39 } 40 41 if (batchCopyMove) { 42 batchCopyMove.classList.add('hidden'); 43 } 44 45 if (batchCopyMove) { 46 batchSelector.addEventListener('change', onChange); 47 } // Cleanup 48 49 50 document.removeEventListener('DOMContentLoaded', onSelect, true); 51 }; // Document loaded 52 53 54 document.addEventListener('DOMContentLoaded', onSelect, true); // Joomla updated 55 56 document.addEventListener('joomla:updated', onSelect, true); 57 })(); 58 59 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |