Set focus in text field when user add an idea
This commit is contained in:
parent
9b5e9d7df0
commit
a35dce838b
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue