CoreFiles by mySites.guru
admin-item-modal.js16 lines, 730 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
66731d178fae8ae9cf6b20e43736e4c6
sha1
59cc71f3c940ad36b8ebcf07b988ee397c1297c7
sha256
1b0be502d99cfa8c56b1d26bc2c72f73f97169f84c3826b59d2c4413618a9596
/**
 * @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) => {
  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 76 releases, Joomla 5.4.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.