CoreFiles by mySites.guru
admin-actionlogs-default.js25 lines, 850 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
ce0d27a6fd7478f255df47e39c5f38e8
sha1
0dd2fb149368ea57d056b9f2509f3f767159797a
sha256
c6fad183065b79abc49c53d021e3a42912b1b603f4e106ef3815ebad23733440
/**
 * @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 = [];
    const elements = [].slice.call(document.querySelectorAll("input[name='cid[]']:checked"));
    if (elements.length) {
      elements.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 79 releases, Joomla 4.3.0-alpha1 to 5.1.0-beta1. See them all, or every version of this file.