Fossil SCM
Remove the "autofocus" attribute from text inputs, to prevent CSS flashes.
Commit
20e680aac75471dab7964f9f7944b58c4ddfc23eb7c0539a472edaea835525fb
Parent
1481ae1f9edb0fa…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -1072,11 +1072,11 @@ | ||
| 1072 | 1072 | if( srchFlags==0 ){ |
| 1073 | 1073 | zDisable1 = " disabled"; |
| 1074 | 1074 | zDisable2 = " disabled"; |
| 1075 | 1075 | zPattern = ""; |
| 1076 | 1076 | }else{ |
| 1077 | - zDisable1 = " autofocus"; | |
| 1077 | + zDisable1 = ""; // autofocus"; | |
| 1078 | 1078 | zDisable2 = ""; |
| 1079 | 1079 | zPattern = PD("s",""); |
| 1080 | 1080 | } |
| 1081 | 1081 | @ <form method='GET' action='%R/%T(g.zPath)'> |
| 1082 | 1082 | if( zClass ){ |
| 1083 | 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 |
| --- 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 @@ | ||
| 507 | 507 | |
| 508 | 508 | /* |
| 509 | 509 | ** Generate code to load all required javascript files. |
| 510 | 510 | */ |
| 511 | 511 | static void style_load_all_js_files(void){ |
| 512 | - if( needHrefJs ){ | |
| 512 | + if( needHrefJs || 1 ){ | |
| 513 | 513 | int nDelay = db_get_int("auto-hyperlink-delay",0); |
| 514 | 514 | int bMouseover; |
| 515 | 515 | /* Load up the page data */ |
| 516 | 516 | bMouseover = (!g.isHuman || db_get_boolean("auto-hyperlink-ishuman",0)) |
| 517 | 517 | && db_get_boolean("auto-hyperlink-mouseover",0); |
| 518 | 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 ){ |
| 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 |