Widget:KeywordSearch: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
No edit summary
Matt Pijoan (talk | contribs)
No edit summary
 
Line 37: Line 37:
});
});
function clearEmptyDivs(){
function clearEmptyDivs(){
console.log($("#examSpace").children());
$.each($(":br"), function(){
console.log($(this).parent());
}
$.each($(".query"), function(){
$.each($(".query"), function(){
if($(this).children().length === 0){
if($(this).children().length === 0){
$("#examSpace").children().nextUntil(':not(br)').remove();
$(this).remove();
$(this).remove();
}
}

Latest revision as of 15:59, 23 October 2013