31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-03 05:50:48 +00:00
jedchecker/media/com_jedchecker/js/police.min.js
anibalsanchez b34cb440a4 2.1.0
2019-03-09 20:44:14 +01:00

2 lines
623 B
JavaScript

var police=new Class({Implements:[Options],options:{},initialize:function(e){var t=this;this.setOptions(e),0<document.id("police-check-result").getChildren("div").length&&document.id("police-check-result").empty(),this.options.rules.each(function(e){t.check(e)}),new Fx.Scroll(window).toElement(document.id("police-check-result"))},check:function(e){new Request({url:this.options.url+"/index.php?option=com_jedchecker&task=police.check&format=raw&rule="+e,async:!1,onComplete:function(e){new Element("div",{html:e}).inject(document.id("police-check-result")),document.id("prison").setStyle("display","block")}}).send()}});