芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.9/com_content/js/admin-articles-default-batch-footer.js
/** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ ((document, submitForm) => { const buttonDataSelector = 'data-submit-task'; const formId = 'adminForm'; /** * Submit the task * @param task */ const submitTask = task => { const form = document.getElementById(formId); if (form && task === 'article.batch') { submitForm(task, form); } }; // Register events document.addEventListener('DOMContentLoaded', () => { const button = document.getElementById('batch-submit-button-id'); if (button) { button.addEventListener('click', e => { const task = e.target.getAttribute(buttonDataSelector); submitTask(task); return false; }); } }); })(document, Joomla.submitform);