CoreFiles by mySites.guru
admin-associations-modal-es5.js24 lines, 951 bytes, from Joomla_4.0.4-Stable-Full_Package.zip
Raw History Compare with 4.0.3
md5
654e0cb11300465a5474166c7a9490c8
sha1
f7beb59523bcd146e81c09b369d2a3a38f24cc05
sha256
d2713c43acc99ccbdf95dd8cc771e9a4ac413bb8a801fa3ae07e425eb15a7fbb
(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 23 releases, Joomla 4.0.0-rc1 to 4.1.0-beta2. See them all, or every version of this file.