CoreFiles by mySites.guru
admin-associations-modal-es5.js23 lines, 950 bytes, from Joomla_4.3.0-Stable-Full_Package.zip
Raw History Compare with 4.2.9
md5
50a41f2d5e7edf103e4de527742a91cf
sha1
d27fae523d23f982e7476dbf3b685ecd31637abf
sha256
db126c193c7703f660db61c32d35ae8b6847a0daf83816da2c86822dc1ea5d65
(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 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.