CoreFiles by mySites.guru
admin-item-modal.js23 lines, 708 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
ea8fcec9b07f7997602b0c7807f33360
sha1
e63263c93d0c28925174835542022898bc191f96
sha256
944018d8fcbbc4ca4492bf5e3b47e62ac974032083f83a7c94b745327f9548d7
/**
* 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 || {};

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