CoreFiles by mySites.guru
admin-actionlogs-default.js20 lines, 750 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
bbd8cfda42889a572c8796dc0a7e48d8
sha1
6c680a2264a5707739a1ab9e8b0356462d89651b
sha256
33f9ef0e7dae00028ca6511160dadcaf8a489608d714bd601a6de3f2f618ce62
/**
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla.submitbutton = task => {

  if (task === 'actionlogs.exportLogs') {
    Joomla.submitform(task, document.getElementById('exportForm'));
    return;
  }
  if (task === 'actionlogs.exportSelectedLogs') {
    // Get id of selected action logs item and pass it to export form hidden input
    const cids = [];
    document.querySelectorAll("input[name='cid[]']:checked").forEach(element => cids.push(element.value));
    document.exportForm.cids.value = cids.join(',');
    Joomla.submitform(task, document.getElementById('exportForm'));
    return;
  }
  Joomla.submitform(task);
};

The same content is in 135 releases, Joomla 5.1.0-beta2 to 6.3.0-alpha1. See them all, or every version of this file.