CoreFiles by mySites.guru
admin-item-edit.es6.min.js1 lines, 1,858 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
d0e9642438c8f49c948446a58e822798
sha1
0d543cfb7e6d4c7d97e544daec7d4f36660d01dc
sha256
c1dd78cf7d3aba28fa034ec1cae7112b2fa9b6a6b7b9c911c0a18c79c095f3b1
(a=>{"use strict";a.submitbutton=(b,c)=>{if("item.setType"===b||"item.setMenuType"===b){if("item.setType"===b){const a=[].slice.call(document.querySelectorAll("#item-form input[name=\"jform[type]\"]"));a.forEach(a=>{a.value=c}),document.getElementById("fieldtype").value="type"}else{const a=[].slice.call(document.querySelectorAll("#item-form input[name=\"jform[menutype]\"]"));a.forEach(a=>{a.value=c})}a.submitform("item.setType",document.getElementById("item-form"))}else if("item.cancel"===b||document.formvalidator.isValid(document.getElementById("item-form")))a.submitform(b,document.getElementById("item-form"));else{const a=[].slice.call(document.querySelectorAll("#item-form .modal-value.invalid"));a.forEach(a=>{const b=a.getAttribute("id").split("").reverse().join(""),c=b.indexOf("_"),d=`${b.substr(c).split("").reverse().join("")}name`;document.getElementById(d).classList.add("invalid")})}};const b=b=>{const c=b.target.value;a.request({url:`index.php?option=com_menus&task=item.getParentItem&menutype=${c}`,headers:{"Content-Type":"application/json"},onSuccess(a){const b=JSON.parse(a),c=[].slice.call(document.querySelectorAll("#jform_parent_id option"));c.forEach(a=>{"1"!==a.value&&a.parentNode.removeChild(a)}),b.forEach(a=>{const b=document.createElement("option");b.innerText=a.title,b.id=a.id,document.getElementById("jform_parent_id").appendChild(b)});const d=document.createEvent("HTMLEvents");d.initEvent("change",!0,!1),document.getElementById("jform_parent_id").dispatchEvent(d)},onError:b=>{a.renderMessages(a.ajaxErrorsMessages(b))}})},c=()=>{if(!a||"function"!=typeof a.request)throw new Error("core.js was not properly initialised");const d=document.getElementById("jform_menutype");d&&d.addEventListener("change",b),document.removeEventListener("DOMContentLoaded",c)};document.addEventListener("DOMContentLoaded",c)})(Joomla);

No other release has this exact content. See every version of this file.