summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-08-21 13:32:43 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-08-21 13:32:43 +0200
commit21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4 (patch)
tree41cb2315459b8746156fd160d26d5e0bb27c1d53
parentbb6d40dcf2a7c8fde5be24560ee47fd566d2b201 (diff)
downloadrpg-21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4.tar.gz
rpg-21b07cb4c56c61ee01ca665a65f71ac0d46a6fa4.tar.bz2
scroll to position only when ACT=index. closes #1314
-rw-r--r--inc/html.php3
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';
}