CoreFiles by mySites.guru
admin-item-modal.js17 lines, 771 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
47b4be0b7a9712072c36c4317b1fbeb0
sha1
1f89907b2860ff85d80d45c64e697005051c6d32
sha256
6ffe243c6568f58a0d7ce06e2e9cd268240298d8556ff13851f1de99de229eb8
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
window.Joomla = window.Joomla || {};
Joomla.setMenuType = (type, tmpl) => {
  // eslint-disable-next-line no-console
  console.warn('Method Joomla.setMenuType() is deprecated. Use "modal-content-select" asset and elements with [data-content-select] attribute.');
  if (tmpl !== '') {
    window.parent.Joomla.submitbutton('item.setType', type);
    if (window.parent.Joomla.Modal && window.parent.Joomla.Modal.getCurrent()) {
      window.parent.Joomla.Modal.getCurrent().close();
    }
  } else {
    window.location = `index.php?option=com_menus&view=item&task=item.setType&layout=edit&type=${type}`;
  }
};

The same content is in 77 releases, Joomla 5.0.0-beta2 to 6.0.0-alpha3. See them all, or every version of this file.