CoreFiles by mySites.guru
admin-actionlogs-default-es5.js33 lines, 952 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
8f9b1ca2462bd27013fec0d96d0dcae0
sha1
c682eeb120e06e0e904a09975e11d0360776b537
sha256
3e51f577c34ced5b70e497d2be68bad1b065f3750c17e6883dfec3917d72d577
(function () {
  'use strict';

  /**
   * @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 = function (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
      var cids = [];
      var elements = [].slice.call(document.querySelectorAll("input[name='cid[]']:checked"));

      if (elements.length) {
        elements.forEach(function (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 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.