CoreFiles by mySites.guru
admin-item-modal.js23 lines, 708 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
0aa06da479aa8596e0c0fb71f29d3172
sha1
14e62ca8826403bf4880533f3b2c74ed226b5204
sha256
c0bdfef8a4c32089c7b5afcb2a3512963a11420569acdac7e192f148ed9455b3
/**
* 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 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
Joomla = window.Joomla || {};

(function (Joomla) {
  'use strict';

  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=".concat(type);
    }
  };
})(Joomla);

The same content is in 6 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha12. See them all, or every version of this file.