CoreFiles by mySites.guru
admin-item-modal.js16 lines, 530 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
31afb0f93d3495581625d6ed621c147c
sha1
ea238ec5124fb6293cdd2293e74b412ff29ddaa0
sha256
84430f2af165ef7e0872f517c60c2d21334323b4471e7bfb5417942201262c10
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};
(Joomla => {

  Joomla.setMenuType = (type, tmpl) => {
    if (tmpl !== '') {
      window.parent.Joomla.submitbutton('item.setType', type);
      window.parent.Joomla.Modal.getCurrent().close();
    } else {
      window.location = `index.php?option=com_menus&view=item&task=item.setType&layout=edit&type=${type}`;
    }
  };
})(Joomla);

The same content is in 61 releases, Joomla 4.3.0-alpha1 to 5.0.0-beta1. See them all, or every version of this file.