Merge pull request #387 from Ritikeshyadav/RitikeshFreeu
Ritikesh freeu
This commit is contained in:
@@ -26,12 +26,18 @@
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
one = true;
|
||||
count = 1;
|
||||
$(".remove_empty_anchor a").each(function (i) {
|
||||
if ($('[href]:empty',this).length == 0 && one) {
|
||||
count += ++i
|
||||
});
|
||||
|
||||
$(".remove_empty_anchor a").each(function (i) {
|
||||
if (count > 4 && $('[href]:empty',this).length == 0 && one) {
|
||||
one = false;
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
// alert(count);
|
||||
})
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user