← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~huwshimi/launchpad/bug-link-focus-749845 into lp:launchpad

 

Huw Wilkins has proposed merging lp:~huwshimi/launchpad/bug-link-focus-749845 into lp:launchpad.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)
Related bugs:
  Bug #749845 in Launchpad itself: "Link to bug report form should set focus to field"
  https://bugs.launchpad.net/launchpad/+bug/749845

For more details, see:
https://code.launchpad.net/~huwshimi/launchpad/bug-link-focus-749845/+merge/66474

The "Link to a bug" form on a branch summary page should set focus on the input when it opens. This branch makes that happen.
-- 
https://code.launchpad.net/~huwshimi/launchpad/bug-link-focus-749845/+merge/66474
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~huwshimi/launchpad/bug-link-focus-749845 into lp:launchpad.
=== modified file 'lib/lp/code/javascript/branch.bugspeclinks.js'
--- lib/lp/code/javascript/branch.bugspeclinks.js	2011-02-24 00:23:04 +0000
+++ lib/lp/code/javascript/branch.bugspeclinks.js	2011-06-30 15:26:38 +0000
@@ -50,6 +50,7 @@
     linkbug_handle.on('click', function(e) {
         e.preventDefault();
         link_bug_overlay.show();
+        Y.DOM.byId('field.bug').focus();
     });
     connect_remove_links();