CoreFiles by mySites.guru
admin-actionlogs-default-es5.js29 lines, 948 bytes, from Joomla_4.4.0-beta1-Beta-Full_Package.zip
Raw History Compare with 4.3.0-beta4
md5
ee2d80cd5d384ec29570101f86b93e97
sha1
e485a8304471ef83015a3b00ed314e1ed8daf29b
sha256
d290cee975ab5042e07e7593c7ffaee300f583e27aebbbc0be722239372052cc
(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 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.