[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 /** 2 * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> 3 * @license GNU General Public License version 2 or later; see LICENSE.txt 4 */ 5 Joomla.submitbutton = task => { 6 7 if (task === 'actionlogs.exportLogs') { 8 Joomla.submitform(task, document.getElementById('exportForm')); 9 return; 10 } 11 12 if (task === 'actionlogs.exportSelectedLogs') { 13 // Get id of selected action logs item and pass it to export form hidden input 14 const cids = []; 15 const elements = [].slice.call(document.querySelectorAll("input[name='cid[]']:checked")); 16 17 if (elements.length) { 18 elements.forEach(element => { 19 cids.push(element.value); 20 }); 21 } 22 23 document.exportForm.cids.value = cids.join(','); 24 Joomla.submitform(task, document.getElementById('exportForm')); 25 return; 26 } 27 28 Joomla.submitform(task); 29 };
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 |