CoreFiles by mySites.guru
admin-associations-modal.es6.js25 lines, 960 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
1d579f28778bd0529e332aa95dde0d9f
sha1
bf05d34582653895c4cc1b752ef783f299f09585
sha256
389b7bd3cd8a4d8c472ef7f21f133a649f1c50719fd00e059fba007d63bf8915
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

((Joomla, document) => {
  'use strict';

  document.addEventListener('DOMContentLoaded', () => {
    const target = window.parent.document.getElementById('target-association');
    const links = [].slice.call(document.querySelectorAll('.select-link'));
    links.forEach(item => {
      item.addEventListener('click', event => {
        target.src = "".concat(target.getAttribute('data-editurl'), "&task=").concat(target.getAttribute('data-item'), ".edit&id=").concat(parseInt(event.target.getAttribute('data-id'), 10));
        window.parent.Joomla.Modal.getCurrent().close();
      });
    });
  });
})(Joomla, document);

The same content is in 5 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.