wallabag/themes/default/js/popupForm.js
2014-10-04 18:44:18 +02:00

21 lines
No EOL
418 B
JavaScript

$(document).ready(function() {
$("#search-form").hide();
function closeSearch() {
$("#search-form").toggle();
$("#search").toggleClass("current");
$("#search-arrow").toggleClass("arrow-down");
}
$("#search").click(function(){
closeSearch();
$('#searchfield').focus();
});
$("#search-form-close").click(function(){
closeSearch();
});
});