CoreFiles by mySites.guru
admin-associations-modal.js25 lines, 984 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
7fb4c255e8105640baba4a1a59c2d6c1
sha1
b1aa18d9090e5e9c9482f80abfe9ab2a1c4aaee4
sha256
eb6141774c24571b3e894ad315a93ce7f44e87d70b66935e41b4c288c417aeb6
/**
* 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 || {};

(function (Joomla, document) {
  'use strict';

  document.addEventListener('DOMContentLoaded', function () {
    var target = window.parent.document.getElementById('target-association');
    var links = [].slice.call(document.querySelectorAll('.select-link'));
    links.forEach(function (item) {
      item.addEventListener('click', function (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 6 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha12. See them all, or every version of this file.