Anonymous avatar Anonymous committed 9a76815

render-input-field, render-password: support `tabindex' attribute.

Comments (0)

Files changed (1)

src/utils/html.lisp

     (:span :class "close-button"
 	   (render-link close-action (humanize-name button-string)))))
 
-(defun render-input-field (type name value &key id class maxlength style size onfocus onblur)
+(defun render-input-field (type name value &key id class maxlength style size onfocus onblur tabindex)
   (with-html
     (:input :type type :name (attributize-name name) :id id
             :size size
 	    :value value :maxlength maxlength :class class
             :style style
+            :tabindex tabindex
             :onfocus onfocus
             :onblur onblur)))
 
 (defun render-password (name value &key (id (gen-id)) (class "password") maxlength style
-                        default-value size visibility-option-p)
+                        default-value size visibility-option-p tabindex)
     "Renders a password in a form.
 'name' - name of the html control. The name is attributized before being rendered.
 'value' - a value on html control.
   (render-input-field "password" name value
                       :size size :id id :class class
                       :maxlength maxlength :style style
+                      :tabindex tabindex
                       :onfocus (when default-value
                                  (format nil "if (this.value==\"~A\") this.value=\"\";" default-value))
                       :onblur (when default-value
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.