Browse Source

autofocus on main form field

Pi 1 week ago
parent
commit
b8daad88b5
3 changed files with 3 additions and 0 deletions
  1. 1 0
      site/clip/form.sql
  2. 1 0
      site/goto/form.sql
  3. 1 0
      site/upload/form.sql

+ 1 - 0
site/clip/form.sql

@@ -35,6 +35,7 @@ SELECT :hash AS value
 WHERE :view
 ;
 SELECT 'Paste something here...' AS placeholder
+, TRUE AS autofocus
 , 'content' AS name
 , 'textarea' AS type
 , '' AS label

+ 1 - 0
site/goto/form.sql

@@ -24,6 +24,7 @@ SELECT 'action' AS name
 WHERE NOT :view
 ;
 SELECT 'content' AS name
+, TRUE AS autofocus
 , '' AS label
 , 'input' AS type
 , :content AS value

+ 1 - 0
site/upload/form.sql

@@ -31,6 +31,7 @@ SELECT 'Upload' AS value
 WHERE NOT :view
 ;
 SELECT 'content' AS name
+, TRUE AS autofocus
 , CASE :view WHEN FALSE THEN 'file' ELSE 'hidden' END AS type
 , '' AS label
 --, :view AS disabled