CoreFiles by mySites.guru
admin-item-modal.js17 lines, 531 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
7c71ffcca7c8305151afffa3de7c9369
sha1
b414934d0e28ceabda075928661cb480f9d34a81
sha256
e521c560030c1375a6755b2836b0d3dc5eb36a94bd84ed1a10e611c475a5c933
/**
 * @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 68 releases, Joomla 4.0.0-rc1 to 4.2.9. See them all, or every version of this file.