CoreFiles by mySites.guru
admin-associations-modal-es5.js24 lines, 951 bytes, from Joomla_4.1.1-Stable-Full_Package.zip
Raw History Compare with 4.1.0
md5
ebf48f9302610f34dd3f9f179a427948
sha1
a1388fa04822769c2eeb71515fd0f56b14d86963
sha256
01e8a028082d2a8c1632f4095220691f688c11ad398420d22c24e4e93c97e014
(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) {
    document.addEventListener('DOMContentLoaded', function () {
      var targetAssociation = window.parent.document.getElementById('target-association');
      var links = [].slice.call(document.querySelectorAll('.select-link'));
      links.forEach(function (item) {
        item.addEventListener('click', function (_ref) {
          var target = _ref.target;
          targetAssociation.src = targetAssociation.getAttribute('data-editurl') + "&task=" + targetAssociation.getAttribute('data-item') + ".edit&id=" + parseInt(target.getAttribute('data-id'), 10);
          window.parent.Joomla.Modal.getCurrent().close();
        });
      });
    });
  })(Joomla, document);

})();

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.