CoreFiles by mySites.guru
admin-item-modal.es6.js23 lines, 688 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
6dbf44aebffc1758a53da0191f60be6f
sha1
415f947761ccd12321cc6ff38e7a0645ce7095df
sha256
6b2723ac5a7391248b52286656c1ddc4cd192c58177b3e890c4ff11e393bde54
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(Joomla => {
  'use strict';

  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 5 releases, Joomla 4.0.0-beta to 4.0.0-beta5. See them all, or every version of this file.