CoreFiles by mySites.guru
admin-associations-modal.js26 lines, 965 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
bc732518c1584e34607e9300dd44cf5e
sha1
ac035bc299de560f279ee3c68aee5240530017ca
sha256
184f838b2fc4323cac52ebf8d6a66dcf93764fd78a702f275068103c34b59092
/**
* 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 = target.getAttribute('data-editurl') + '&task=' + target.getAttribute('data-item') + '.edit&id=' + 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.