fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Book with donation.
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
base.js
diff --git
a/src/wolnelektury/static/js/base.js
b/src/wolnelektury/static/js/base.js
index
377a969
..
8f26db4
100644
(file)
--- a/
src/wolnelektury/static/js/base.js
+++ b/
src/wolnelektury/static/js/base.js
@@
-176,6
+176,12
@@
});
$('.hoverclick').click(function() {$(this).closest('.hoverget').toggleClass('hover');});
});
$('.hoverclick').click(function() {$(this).closest('.hoverget').toggleClass('hover');});
+ $('.hoverclick').keydown(function(event){
+ var keyCode = (event.keyCode ? event.keyCode : event.which);
+ if (keyCode == 13) {
+ $(this).trigger('click');
+ }
+ });
$(function(){
$("#search").search();
$(function(){
$("#search").search();
@@
-362,6
+368,13
@@
$(this).addClass("active");
});
$(this).addClass("active");
});
+
+ $("#skiplink-search").click(function() {
+ console.log('skiplink search');
+ $("#search").focus();
+ return false;
+ });
+
});
})(jQuery);
});
})(jQuery);