fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-16 09:14 am

[dw-free] "Edit" on Select Journal Style does not work in all use-cases

[commit: http://hg.dwscoalition.org/dw-free/rev/c042ca0506c8]

http://bugs.dwscoalition.org/show_bug.cgi?id=2766

Focus on the textbox when you click edit, so you don't need to guess where
the action is.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/Widget/JournalTitles.pm
--------------------------------------------------------------------------------
diff -r 5c365a750215 -r c042ca0506c8 cgi-bin/LJ/Widget/JournalTitles.pm
--- a/cgi-bin/LJ/Widget/JournalTitles.pm	Mon May 16 16:15:29 2011 +0800
+++ b/cgi-bin/LJ/Widget/JournalTitles.pm	Mon May 16 17:14:31 2011 +0800
@@ -135,6 +135,7 @@
         editTitle: function (evt, id) {
             $(id + "_modify").style.display = "inline";
             $(id + "_view").style.display = "none";
+            $(id).focus();
 
             // cancel any other titles that are being edited since
             // we only want one title in edit mode at a time
--------------------------------------------------------------------------------