Set focus in text field when user add an idea

This commit is contained in:
Manuel Cillero 2017-09-08 21:21:03 +02:00
parent 9b5e9d7df0
commit a35dce838b
2 changed files with 3 additions and 1 deletions

View file

@ -170,6 +170,8 @@ function stormidea_form(&$node) {
'#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'title') : -16,
);
drupal_add_js('$jq(function(){$("#edit-title-1").focus();});', 'inline', 'footer');
return $form;
}