CoreFiles by mySites.guru
admin-users-groups-es5.js34 lines, 968 bytes, from Joomla_4.0.0-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 3.10.12-rc1
md5
9cdf9c1a78c7634552fa2c3cb21a93f7
sha1
15c8fa0597d0a1c8b94487c260db6956c5f4bd7f
sha256
3720ac91f20bf4c59e42b09ba42b0b19ee37a5d1f6db603cae5b65d5f4be2c73
(function () {
  'use strict';

  /**
   * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */
  Joomla = window.Joomla || {};

  (function (Joomla) {
    document.addEventListener('DOMContentLoaded', function () {
      Joomla.submitbutton = function (task) {
        if (task === 'groups.delete') {
          var cids = document.getElementsByName('cid[]');

          for (var i = 0; i < cids.length; i += 1) {
            if (cids[i].checked && cids[i].parentNode.getAttribute('data-usercount') !== '0') {
              // TODO replace with joomla-alert
              if (window.confirm(Joomla.JText._('COM_USERS_GROUPS_CONFIRM_DELETE'))) {
                Joomla.submitform(task);
              }

              return false;
            }
          }
        }

        Joomla.submitform(task);
        return false;
      };
    });
  })(Joomla);

}());

No other release has this exact content. See every version of this file.