Skip to content
Snippets Groups Projects
Commit 21b07cb4 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

scroll to position only when ACT=index. closes #1314

parent bb6d40dc
No related branches found
No related tags found
No related merge requests found
......@@ -959,13 +959,14 @@ function html_list_index($item){
*/
function html_li_index($item){
global $INFO;
global $ACT;
$class = '';
$id = '';
if($item['type'] == "f"){
// scroll to the current item
if($item['id'] == $INFO['id']) {
if($item['id'] == $INFO['id'] && $ACT == 'index') {
$id = ' id="scroll__here"';
$class = ' bounce';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment