CoreFiles by mySites.guru
privacycheck.min.js1 lines, 1,337 bytes, from Joomla_4.0.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta3
md5
bc70ff4583c2dfb7d276571d1fddeaab
sha1
e81c76e01d757bed016e4e469670e2d392212fb1
sha256
bafb05cbad0f6265275178c8fcfc6888697f56d1428f078476afec757ca2f934
(function(a){'use strict';a.addEventListener("DOMContentLoaded",function(){var b=Joomla.getOptions("js-privacy-check"),c=b.plg_quickicon_privacycheck_ajax_url,d=b.plg_quickicon_privacycheck_url,f=b.plg_quickicon_privacycheck_text,g=a.getElementById("plg_quickicon_privacycheck"),h=g.querySelector("span.j-links-link");Joomla.request({url:c,method:"GET",data:"",perform:!0,onSuccess:function onSuccess(b){try{var c=JSON.parse(b);if(c.data.number_urgent_requests){h.textContent="".concat(f.REQUESTFOUND," ").concat(c.data.number_urgent_requests),g.classList.add("danger");var e=a.createElement("span");e.classList.add("label","label-important"),e.textContent=c.data.number_urgent_requests;var i=a.createElement("button");i.classList.add("btn","btn-primary"),i.setAttribute("onclick","document.location='".concat(d,"'")),i.textContent=f.REQUESTFOUND_BUTTON;var j=a.createElement("div");j.classList.add("alert","alert-error","alert-joomlaupdate"),j.appendChild(e),j.insertAdjacentText("beforeend"," ".concat(f.REQUESTFOUND_MESSAGE)),j.appendChild(i);var k=a.querySelector("#system-message-container");k.insertBefore(j,k.firstChild)}else g.classList.add("success"),h.textContent=f.NOREQUEST}catch(a){g.classList.add("danger"),h.textContent=f.ERROR}},onError:function onError(){g.classList.add("danger"),h.textContent=f.ERROR}})})})(document);

The same content is in 9 releases, Joomla 4.0.0-alpha11 to 4.0.0-beta7. See them all, or every version of this file.