CoreFiles by mySites.guru
admin-templates-default.min.js1 lines, 2,473 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
e25f53d5dd02e0ce171174e35d9bce93
sha1
18bbef104a174f9a8d28b2bf532ca149362352a5
sha256
dd9e4253460eea893e48edc70000e4bc8a7eb18b45ad7f6b93f457d93c99f4b3
(function(){"use strict";document.addEventListener("DOMContentLoaded",function(){var a=[].slice.call(document.querySelectorAll(".folder-url, .component-folder-url, .layout-folder-url")),b=[].slice.call(document.querySelectorAll(".folder ul, .component-folder ul, .layout-folder ul")),c=[].slice.call(document.querySelectorAll(".show > ul")),d=[].slice.call(document.querySelectorAll("#fileModal .folder-url")),e=[].slice.call(document.querySelectorAll("#folderModal .folder-url"));b.forEach(function(a){a.style.display="none"}),c.forEach(function(a){a.style.display="block"}),a.forEach(function(a){a.addEventListener("click",function(a){a.preventDefault();var b=a.target.parentNode.querySelector("ul");b.style.display="none"===b.style.display?"block":"none"})}),d.forEach(function(a){a.addEventListener("click",function(a){a.preventDefault(),d.forEach(function(a){a.classList.remove("selected")}),a.target.classList.add("selected");var b=[].slice.call(document.querySelectorAll("#fileModal input.address"));b.forEach(function(b){b.value=a.target.getAttribute("data-id")})})}),e.forEach(function(a){a.addEventListener("click",function(a){a.preventDefault(),e.forEach(function(a){a.classList.remove("selected")}),a.target.classList.add("selected");var b=[].slice.call(document.querySelectorAll("#folderModal input.address"));b.forEach(function(b){b.value=a.target.getAttribute("data-id")})})});var f=document.querySelector("#treeholder .treeselect"),g=[].slice.call(f.querySelectorAll(".folder.show")),h=document.querySelector("p.lead.hidden.path");if(h){var l=document.querySelector("p.lead.hidden.path").innerText;if(l&&"/"===l.charAt(0)){l=l.slice(1),l=l.split("/"),l=l[l.length-1];var m=new RegExp(l);g.forEach(function(a,b){if(a.querySelector("a").classList.add("active"),b===g.length-1){var c=a.querySelector("ul"),d=[].slice.call(c.querySelectorAll("li"));d.forEach(function(a){var b=a.querySelector("a"),c=b.querySelector("span");c&&m.test(c.innerText)&&b.classList.add("active")})}})}}var i=document.getElementById("image-crop");if(i){var j=document.getElementById("imageWidth").value,k=document.getElementById("imageHeight").value;new window.Cropper(i,{viewMode:0,scalable:!0,zoomable:!0,minCanvasWidth:j,minCanvasHeight:k}),i.addEventListener("crop",function(a){document.getElementById("x").value=a.detail.x,document.getElementById("y").value=a.detail.y,document.getElementById("w").value=a.detail.width,document.getElementById("h").value=a.detail.height})}})})();

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