CoreFiles by mySites.guru
admin-view-run-test-task-es5.min.js1 lines, 2,688 bytes, from Joomla_4.1.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.1.0-beta1
md5
14731e9773f234178ebd87679d94cfba
sha1
a532f8e81f9ee8d92d353a8a32caca105fa04dbd
sha256
e924f8cc9ea0332e0e42512d4fa694e6a8d3d923256756deaa81e30cdaf5ea80
!function(){"use strict";if(!window.Joomla)throw new Error("Joomla API was not properly initialised");document.addEventListener("DOMContentLoaded",(function e(){var o=Joomla.getOptions("system.paths"),a=(o?o.base+"/index.php":window.location.pathname)+"?option=com_ajax&format=json&plugin=RunSchedulerTest&group=system&id=%d",t=document.getElementById("scheduler-test-modal"),r='\n    <h4 class="scheduler-headline">'+Joomla.Text._("COM_SCHEDULER_TEST_RUN_TASK")+"</h4>\n    <div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_STATUS_STARTED")+'</div>\n    <div class="mt-3 text-center"><span class="fa fa-spinner fa-spin fa-lg"></span></div>\n  ',d=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br>$2")};t.addEventListener("show.bs.modal",(function(e){var o=e.relatedTarget,n=parseInt(o.dataset.id,10),i=o.dataset.title;t.querySelector(".modal-title").innerHTML=Joomla.Text._("COM_SCHEDULER_TEST_RUN_TITLE").replace("%d",n),t.querySelector(".modal-body > div").innerHTML=r.replace("%s",i),Joomla.request({url:a.replace("%d",n.toString()),onSuccess:function(e,o){[].slice.call(t.querySelectorAll(".modal-body > div > div")).forEach((function(e){e.parentNode.removeChild(e)}));var a=JSON.parse(e);if(a&&a.success&&a.data){if(t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_STATUS_COMPLETED")+"</div>",a.data.duration>0&&(t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_DURATION").replace("%s",a.data.duration.toFixed(2))+"</div>"),a.data.output){var r=Joomla.sanitizeHtml(a.data.output,null,d);t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_OUTPUT").replace("%s",r)+"</div>"}}else t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_STATUS_TERMINATED")+"</div>",t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_OUTPUT").replace("%s",Joomla.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",o.status))+"</div>"},onError:function(e){t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_STATUS_TERMINATED")+"</div>";var o=Joomla.ajaxErrorsMessages(e);t.querySelector(".modal-body > div").innerHTML+="<div>"+Joomla.Text._("COM_SCHEDULER_TEST_RUN_OUTPUT").replace("%s",o.error)+"</div>"}})})),t.addEventListener("hidden.bs.modal",(function(){window.location.href=(o?o.base+"/index.php":window.location.pathname)+"?option=com_scheduler&view=tasks"})),document.removeEventListener("DOMContentLoaded",e)}))}();

The same content is in 3 releases, Joomla 4.1.0-beta1 to 4.1.0-beta3. See them all, or every version of this file.