diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-08-21 13:32:43 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-08-21 13:32:43 +0200 |
commit | 21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4 (patch) | |
tree | 41cb2315459b8746156fd160d26d5e0bb27c1d53 /inc | |
parent | bb6d40dcf2a7c8fde5be24560ee47fd566d2b201 (diff) | |
download | rpg-21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4.tar.gz rpg-21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4.tar.bz2 |
scroll to position only when ACT=index. closes #1314
Diffstat (limited to 'inc')
-rw-r--r-- | inc/html.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index 0914a1762..24d108ea4 100644 --- a/inc/html.php +++ b/inc/html.php @@ -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'; } |