CoreFiles by mySites.guru
admin-associations-modal.js26 lines, 1,055 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
5b95be81f9a3d6f46c7aca7a3529820e
sha1
b21167f55cd07a4b5c68af9078986e3488cbf633
sha256
7bc35953de41ed0e044ee4be3c0908eb1bd9edf1708d94d69ea6e71f213529fc
/**
* 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 - 2020 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 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 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.