mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-27 23:36:38 +00:00
Results from previous check are now cleared when checking again
This commit is contained in:
parent
02fdc3ed4c
commit
c43c77b9f4
@ -13,6 +13,12 @@ var police = new Class({
|
|||||||
var self = this;
|
var self = this;
|
||||||
this.setOptions(options);
|
this.setOptions(options);
|
||||||
|
|
||||||
|
// Clear result from any previous check
|
||||||
|
if(document.id('police-check-result').getChildren('div').length > 0) {
|
||||||
|
document.id('police-check-result').empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this.options.rules.each(function(rule){
|
this.options.rules.each(function(rule){
|
||||||
self.check(rule);
|
self.check(rule);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user