CoreFiles by mySites.guru
admin-associations-modal.js25 lines, 984 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
2749b7ed3f77012c96ea3a73603d462a
sha1
177ba1dde6e2825191fd56b957d0224c0f7257aa
sha256
89c0d066de893b04b0034c88955ab1f325ed43d84775795924cc1d126ba276a9
/**
* 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 - 2018 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);

No other release has this exact content. See every version of this file.