CoreFiles by mySites.guru
admin-item-modal-es5.js21 lines, 613 bytes, from Joomla_4.0.0-Stable-Full_Package.zip
Raw History Compare with 3.10.12
md5
1569d2ff2e996c811fa880642ac7a381
sha1
aa2ecafe1de96d14b56090a5c4ae7269733fb6d7
sha256
c834ed6b817ab324bcf879efd3a673b2ac1b08b589e361c4cf6941446d834955
(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 23 releases, Joomla 4.0.0-rc1 to 4.1.0-beta2. See them all, or every version of this file.