Minor - Add autofocus to learnpath name field #minor #usability

1.9.x
Yannick Warnier 11 years ago
parent f27051f4a9
commit ca2493ed04
  1. 2
      main/newscorm/lp_add.php

@ -120,7 +120,7 @@ $form = new FormValidator('lp_add', 'post', 'lp_controller.php');
$form->addElement('header', null, get_lang('AddLpToStart'));
// Title
$form->addElement('text', 'lp_name', api_ucfirst(get_lang('LPName')), array('class' => 'span6'));
$form->addElement('text', 'lp_name', api_ucfirst(get_lang('LPName')), array('class' => 'span6', 'autofocus' => 'autofocus'));
$form->applyFilter('lp_name', 'html_filter');
$form->addRule('lp_name', get_lang('ThisFieldIsRequired'), 'required');

Loading…
Cancel
Save