CoreFiles by mySites.guru
admin-associations-modal.js26 lines, 1,042 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
c67498d1daecd48dd7569ce93ab2f115
sha1
c5a45e0638c0eb6fef451ef443d3bc50853ac160
sha256
649eaddaf92120bd3bfc3db9fa7c34946f2a283af43249014e22b5fe27c69d17
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @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) {
  'use strict';

  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 = "".concat(targetAssociation.getAttribute('data-editurl'), "&task=").concat(targetAssociation.getAttribute('data-item'), ".edit&id=").concat(parseInt(target.getAttribute('data-id'), 10));
        window.parent.Joomla.Modal.getCurrent().close();
      });
    });
  });
})(Joomla, document);

The same content is in 2 releases, Joomla 4.0.0-beta6 to 4.0.0-beta7. See them all, or every version of this file.