CoreFiles by mySites.guru
moduleorder.min.js1 lines, 1,684 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
67dcabc1b27e356997dff2d7a43282a7
sha1
525bf6a1287d1016749d92ff3473014d25c79504
sha256
d85fcb7463a0fea6bfc7589517a77f7c7a12040a003bc52ee9b73c8e5240e77e
!function(){"use strict";document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".module-ajax-ordering"),t=e.getAttribute("data-linked-field")?e.getAttribute("data-linked-field"):"jform_position",n=document.getElementById(t),a=n.value,d=function(e,t){var n=e.getAttribute("data-url"),a=e.getAttribute("data-client-id"),d=document.getElementById(e.getAttribute("data-element")),i=e.getAttribute("data-ordering"),r=e.getAttribute("data-name"),o=e.getAttribute("data-client-attr")?e.getAttribute("data-client-attr"):"custom-select",s=e.getAttribute("id")+"_1",l=new Array;Joomla.request({url:n,method:"GET",data:"client_id="+a+"&position="+t,perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(e,n){if(e&&(e=JSON.parse(e)).data.length>0){for(var a=0;a<e.data.length;++a)l[a]=e.data[a].split(",");!function(e,t,n,a,d){var i,r=document.createElement("select");r.classList.add(e.itemClass),r.setAttribute("name",e.name),r.id=e.id,d&&(d.innerHTML="",d.appendChild(r));var o,s,l=n,u=0;for(o in t)t.hasOwnProperty(o)&&(s=t[o],(i=document.createElement("option")).value=s[1],i.innerHTML=s[2],(l&&a==s[1]||!l&&0===u)&&i.setAttribute("selected","selected"),r.appendChild(i),r.parentNode.innerHtml="",r.parentNode.appendChild(r),u++)}({name:r,id:s,itemClass:o},l,t,i,d)}"object"==typeof e.messages&&null!==e.messages&&(Joomla.renderMessages(e.messages),window.scrollTo(0,0))}})};d(e,a),window.jQuery&&jQuery().chosen?jQuery(n).chosen().change(function(){a=jQuery(n).chosen().val(),d(e,a),jQuery(e.childNodes[0]).chosen("destroy"),jQuery(e.childNodes[0]).chosen()}):n.addEventListener("change",function(){a=n.value,d(e,a)})})}();

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