[ 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 onChange = function onChange(value) { 10 if (value === '-' || parseInt(value, 10) === 0) { 11 document.getElementById('menuselect-group').classList.add('hidden'); 12 } else { 13 document.getElementById('menuselect-group').classList.remove('hidden'); 14 } 15 }; 16 17 var onBoot = function onBoot() { 18 var element = document.getElementById('jform_assignment'); 19 20 if (element) { 21 // Initialise the state 22 onChange(element.value); // Check for changes in the state 23 24 element.addEventListener('change', function (_ref) { 25 var target = _ref.target; 26 onChange(target.value); 27 }); 28 } 29 30 document.removeEventListener('DOMContentLoaded', onBoot); 31 }; 32 33 document.addEventListener('DOMContentLoaded', onBoot); 34 })(); 35 36 })();
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 |