Commit 552328cc authored by frjo's avatar frjo
Browse files

Issue #1473624 by hthehugemanatee: Set cbox prefix on login field id to make...

Issue #1473624 by hthehugemanatee: Set cbox prefix on login field id to make sure you can target them without problems.
parent ba975411
...@@ -359,7 +359,9 @@ function colorbox_form_alter(&$form, &$form_state, $form_id) { ...@@ -359,7 +359,9 @@ function colorbox_form_alter(&$form, &$form_state, $form_id) {
case 'user_login': case 'user_login':
if (arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'colorbox') { if (arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'colorbox') {
$form['name']['#size'] = 25; $form['name']['#size'] = 25;
$form['name']['#id'] = 'cbox-edit-name';
$form['pass']['#size'] = 25; $form['pass']['#size'] = 25;
$form['pass']['#id'] = 'cbox-edit-pass';
// Add links as needed. // Add links as needed.
if (variable_get('colorbox_login_links', 0)) { if (variable_get('colorbox_login_links', 0)) {
......
...@@ -22,7 +22,7 @@ Drupal.behaviors.initColorboxLogin = { ...@@ -22,7 +22,7 @@ Drupal.behaviors.initColorboxLogin = {
initialWidth:200, initialWidth:200,
initialHeight:200, initialHeight:200,
onComplete:function(){ onComplete:function(){
$('#edit-name').focus(); $('#cbox-edit-name').focus();
} }
}); });
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment