Răsfoiți Sursa

Merge pull request #3849 from mfilser/custom-field-stringtemplate_autofocus

custom fields stringtemplate, autofocus the last input box
Lauri Ojansivu 4 ani în urmă
părinte
comite
17f15f546f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      client/components/cards/cardCustomFields.jade

+ 1 - 1
client/components/cards/cardCustomFields.jade

@@ -125,7 +125,7 @@ template(name="cardCustomField-stringtemplate")
         +inlinedForm(classNames="js-card-customfield-stringtemplate")
         +inlinedForm(classNames="js-card-customfield-stringtemplate")
             each item in stringtemplateItems.get
             each item in stringtemplateItems.get
                 input.js-card-customfield-stringtemplate-item(type="text" value=item placeholder="")
                 input.js-card-customfield-stringtemplate-item(type="text" value=item placeholder="")
-            input.js-card-customfield-stringtemplate-item.last(type="text" value="" placeholder="{{_ 'custom-field-stringtemplate-item-placeholder'}}")
+            input.js-card-customfield-stringtemplate-item.last(type="text" value="" placeholder="{{_ 'custom-field-stringtemplate-item-placeholder'}}" autofocus)
             .edit-controls.clearfix
             .edit-controls.clearfix
                 button.primary(type="submit") {{_ 'save'}}
                 button.primary(type="submit") {{_ 'save'}}
                 a.fa.fa-times-thin.js-close-inlined-form
                 a.fa.fa-times-thin.js-close-inlined-form