Fossil SCM
Fix the anti-robot logic so that auto-hyperlink-mouseover actually works and so that the "mouseover" setting sent down to javascript is determined only by the setting on the Access page.
Commit
37f23f3764976a362ecc483ba9b35e76dec5e8c0a0a0377acee08da1f0211cf0
Parent
d0de24fe8679e35…
1 file changed
+1
-4
+1
-4
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -573,14 +573,11 @@ | ||
| 573 | 573 | */ |
| 574 | 574 | static void style_load_all_js_files(void){ |
| 575 | 575 | int i; |
| 576 | 576 | if( needHrefJs ){ |
| 577 | 577 | int nDelay = db_get_int("auto-hyperlink-delay",0); |
| 578 | - int bMouseover; | |
| 579 | - /* Load up the page data */ | |
| 580 | - bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0)) | |
| 581 | - && db_get_boolean("auto-hyperlink-mouseover",0); | |
| 578 | + int bMouseover = db_get_boolean("auto-hyperlink-mouseover",0); | |
| 582 | 579 | @ <script id='href-data' type='application/json'>\ |
| 583 | 580 | @ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script> |
| 584 | 581 | } |
| 585 | 582 | @ <script nonce="%h(style_nonce())"> |
| 586 | 583 | if( needHrefJs ){ |
| 587 | 584 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -573,14 +573,11 @@ | |
| 573 | */ |
| 574 | static void style_load_all_js_files(void){ |
| 575 | int i; |
| 576 | if( needHrefJs ){ |
| 577 | int nDelay = db_get_int("auto-hyperlink-delay",0); |
| 578 | int bMouseover; |
| 579 | /* Load up the page data */ |
| 580 | bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0)) |
| 581 | && db_get_boolean("auto-hyperlink-mouseover",0); |
| 582 | @ <script id='href-data' type='application/json'>\ |
| 583 | @ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script> |
| 584 | } |
| 585 | @ <script nonce="%h(style_nonce())"> |
| 586 | if( needHrefJs ){ |
| 587 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -573,14 +573,11 @@ | |
| 573 | */ |
| 574 | static void style_load_all_js_files(void){ |
| 575 | int i; |
| 576 | if( needHrefJs ){ |
| 577 | int nDelay = db_get_int("auto-hyperlink-delay",0); |
| 578 | int bMouseover = db_get_boolean("auto-hyperlink-mouseover",0); |
| 579 | @ <script id='href-data' type='application/json'>\ |
| 580 | @ {"delay":%d(nDelay),"mouseover":%d(bMouseover)}</script> |
| 581 | } |
| 582 | @ <script nonce="%h(style_nonce())"> |
| 583 | if( needHrefJs ){ |
| 584 |