Better behaviour for clicking cats/tags button w/o overlay.

References #222
This commit is contained in:
Matthias Mees 2014-11-14 11:39:21 +01:00
parent 55459bc112
commit 06237977a1

View File

@ -946,8 +946,13 @@ $(function() {
{if $use_backendpopups}
if($('#serendipityEntry').length > 0) {
$('#select_category').click(function(e) {
e.preventDefault();
$('#toggle_metadata').click();
// We might want to make this reuseable
e.preventDefault();
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top
}, 1000);
});
}
{else}
@ -974,8 +979,13 @@ $(function() {
{if $use_backendpopups}
if($('#serendipityEntry').length > 0) {
$('#select_tags').click(function(e) {
e.preventDefault();
$('#toggle_advanced').click();
// We might want to make this reuseable
e.preventDefault();
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top
}, 1000);
});
}
{else}