Fossil SCM

Remove the "autofocus" attribute from text inputs, to prevent CSS flashes.

drh 2017-12-14 00:48 trunk
Commit 20e680aac75471dab7964f9f7944b58c4ddfc23eb7c0539a472edaea835525fb
2 files changed +1 -1 +1 -1
+1 -1
--- src/search.c
+++ src/search.c
@@ -1072,11 +1072,11 @@
10721072
if( srchFlags==0 ){
10731073
zDisable1 = " disabled";
10741074
zDisable2 = " disabled";
10751075
zPattern = "";
10761076
}else{
1077
- zDisable1 = " autofocus";
1077
+ zDisable1 = ""; // autofocus";
10781078
zDisable2 = "";
10791079
zPattern = PD("s","");
10801080
}
10811081
@ <form method='GET' action='%R/%T(g.zPath)'>
10821082
if( zClass ){
10831083
--- src/search.c
+++ src/search.c
@@ -1072,11 +1072,11 @@
1072 if( srchFlags==0 ){
1073 zDisable1 = " disabled";
1074 zDisable2 = " disabled";
1075 zPattern = "";
1076 }else{
1077 zDisable1 = " autofocus";
1078 zDisable2 = "";
1079 zPattern = PD("s","");
1080 }
1081 @ <form method='GET' action='%R/%T(g.zPath)'>
1082 if( zClass ){
1083
--- src/search.c
+++ src/search.c
@@ -1072,11 +1072,11 @@
1072 if( srchFlags==0 ){
1073 zDisable1 = " disabled";
1074 zDisable2 = " disabled";
1075 zPattern = "";
1076 }else{
1077 zDisable1 = ""; // autofocus";
1078 zDisable2 = "";
1079 zPattern = PD("s","");
1080 }
1081 @ <form method='GET' action='%R/%T(g.zPath)'>
1082 if( zClass ){
1083
+1 -1
--- src/style.c
+++ src/style.c
@@ -507,11 +507,11 @@
507507
508508
/*
509509
** Generate code to load all required javascript files.
510510
*/
511511
static void style_load_all_js_files(void){
512
- if( needHrefJs ){
512
+ if( needHrefJs || 1 ){
513513
int nDelay = db_get_int("auto-hyperlink-delay",0);
514514
int bMouseover;
515515
/* Load up the page data */
516516
bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0))
517517
&& db_get_boolean("auto-hyperlink-mouseover",0);
518518
--- src/style.c
+++ src/style.c
@@ -507,11 +507,11 @@
507
508 /*
509 ** Generate code to load all required javascript files.
510 */
511 static void style_load_all_js_files(void){
512 if( needHrefJs ){
513 int nDelay = db_get_int("auto-hyperlink-delay",0);
514 int bMouseover;
515 /* Load up the page data */
516 bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0))
517 && db_get_boolean("auto-hyperlink-mouseover",0);
518
--- src/style.c
+++ src/style.c
@@ -507,11 +507,11 @@
507
508 /*
509 ** Generate code to load all required javascript files.
510 */
511 static void style_load_all_js_files(void){
512 if( needHrefJs || 1 ){
513 int nDelay = db_get_int("auto-hyperlink-delay",0);
514 int bMouseover;
515 /* Load up the page data */
516 bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0))
517 && db_get_boolean("auto-hyperlink-mouseover",0);
518

Keyboard Shortcuts

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