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 30: Line 30:
$(this).parent().addClass("focused");
$(this).parent().addClass("focused");
$(".queryString").focusout(function () {
$(".queryString").focusout(function () {
if ($(this).val().length <= 1) {
if ($(this).val().length <= 1) {
$(this).remove();
$(this).remove();
                                        if($(this).parent().length === 0){
}
                                              console.log($(this).parent().parent());
                                              $(this).parent().remove();
                                        }
}
});
});
});
});
Line 48: Line 44:
if ($(this).val().length <= 1) {
if ($(this).val().length <= 1) {
$(this).remove();
$(this).remove();
                                        if($(this).parent().length === 0){
console.log($(this).parent().parent());
                                              $(this).parent().remove();
                                        }
}
}
});
});
Line 66: Line 58:
if ($(this).val().length <= 1) {
if ($(this).val().length <= 1) {
$(this).remove();
$(this).remove();
                                        if($(this).parent().length === 0){
console.log($(this).parent().parent());
                                              $(this).parent().remove();
                                        }
}
}
});
});

Revision as of 15:24, 23 October 2013