Fossil SCM

Change the default auto-hyperlink-delay from 0 to 10 milliseconds.

drh 2013-04-09 13:30 trunk
Commit ddd16596775681ba7477514f9e5bac7b26d67ed7
2 files changed +1 -1 +1 -1
+1 -1
--- src/setup.c
+++ src/setup.c
@@ -951,11 +951,11 @@
951951
@ <blockquote>
952952
onoff_attribute("Require mouse movement before enabling hyperlinks",
953953
"auto-hyperlink-mouseover", "ahmo", 0);
954954
@ <br>
955955
entry_attribute("Delay before enabling hyperlinks (milliseconds)", 5,
956
- "auto-hyperlink-delay", "ah-delay", "0");
956
+ "auto-hyperlink-delay", "ah-delay", "10");
957957
@ </blockquote>
958958
@ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
959959
@ finishes loading. But the first check-box below can be set to require mouse
960960
@ movement before enabling the links. One can also set a delay prior to enabling
961961
@ links by enter a positive number of milliseconds in the entry box above.</p>
962962
--- src/setup.c
+++ src/setup.c
@@ -951,11 +951,11 @@
951 @ <blockquote>
952 onoff_attribute("Require mouse movement before enabling hyperlinks",
953 "auto-hyperlink-mouseover", "ahmo", 0);
954 @ <br>
955 entry_attribute("Delay before enabling hyperlinks (milliseconds)", 5,
956 "auto-hyperlink-delay", "ah-delay", "0");
957 @ </blockquote>
958 @ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
959 @ finishes loading. But the first check-box below can be set to require mouse
960 @ movement before enabling the links. One can also set a delay prior to enabling
961 @ links by enter a positive number of milliseconds in the entry box above.</p>
962
--- src/setup.c
+++ src/setup.c
@@ -951,11 +951,11 @@
951 @ <blockquote>
952 onoff_attribute("Require mouse movement before enabling hyperlinks",
953 "auto-hyperlink-mouseover", "ahmo", 0);
954 @ <br>
955 entry_attribute("Delay before enabling hyperlinks (milliseconds)", 5,
956 "auto-hyperlink-delay", "ah-delay", "10");
957 @ </blockquote>
958 @ <p>Hyperlinks for user "nobody" are normally enabled as soon as the page
959 @ finishes loading. But the first check-box below can be set to require mouse
960 @ movement before enabling the links. One can also set a delay prior to enabling
961 @ links by enter a positive number of milliseconds in the entry box above.</p>
962
+1 -1
--- src/style.c
+++ src/style.c
@@ -160,11 +160,11 @@
160160
/*
161161
** Generate javascript that will set the href= attribute on all anchors.
162162
*/
163163
void style_resolve_href(void){
164164
int i;
165
- int nDelay = db_get_int("auto-hyperlink-delay",0);
165
+ int nDelay = db_get_int("auto-hyperlink-delay",10);
166166
if( !g.perm.Hyperlink ) return;
167167
if( nHref==0 && nFormAction==0 ) return;
168168
@ <script type="text/JavaScript">
169169
@ /* <![CDATA[ */
170170
@ function setAllHrefs(){
171171
--- src/style.c
+++ src/style.c
@@ -160,11 +160,11 @@
160 /*
161 ** Generate javascript that will set the href= attribute on all anchors.
162 */
163 void style_resolve_href(void){
164 int i;
165 int nDelay = db_get_int("auto-hyperlink-delay",0);
166 if( !g.perm.Hyperlink ) return;
167 if( nHref==0 && nFormAction==0 ) return;
168 @ <script type="text/JavaScript">
169 @ /* <![CDATA[ */
170 @ function setAllHrefs(){
171
--- src/style.c
+++ src/style.c
@@ -160,11 +160,11 @@
160 /*
161 ** Generate javascript that will set the href= attribute on all anchors.
162 */
163 void style_resolve_href(void){
164 int i;
165 int nDelay = db_get_int("auto-hyperlink-delay",10);
166 if( !g.perm.Hyperlink ) return;
167 if( nHref==0 && nFormAction==0 ) return;
168 @ <script type="text/JavaScript">
169 @ /* <![CDATA[ */
170 @ function setAllHrefs(){
171

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button