[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_associations/js/ -> admin-associations-modal-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license     GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    Joomla = window.Joomla || {};
   9  
  10    (function (Joomla, document) {
  11      document.addEventListener('DOMContentLoaded', function () {
  12        var targetAssociation = window.parent.document.getElementById('target-association');
  13        var links = [].slice.call(document.querySelectorAll('.select-link'));
  14        links.forEach(function (item) {
  15          item.addEventListener('click', function (_ref) {
  16            var target = _ref.target;
  17            targetAssociation.src = targetAssociation.getAttribute('data-editurl') + "&task=" + targetAssociation.getAttribute('data-item') + ".edit&id=" + parseInt(target.getAttribute('data-id'), 10);
  18            window.parent.Joomla.Modal.getCurrent().close();
  19          });
  20        });
  21      });
  22    })(Joomla, document);
  23  
  24  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer