CoreFiles by mySites.guru
admin-item-modal-es5.js21 lines, 613 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
f8e1f6327cdad8eec5fe23509dd5afb8
sha1
3e19349ffd1012c6c6ba6a05a0c14165acd80659
sha256
61c195ced0656af78931ba4f3844cd6cc8a5bf28604c72eca1dc730f640d484b
(function () {
  'use strict';

  /**
   * @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 || {};

  (function (Joomla) {
    Joomla.setMenuType = function (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 45 releases, Joomla 4.0.6-rc1 to 4.2.9. See them all, or every version of this file.