Update the form field after it's focused to avoid having it cleared.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Jun 2010 15:31:51 +0000 (11:31 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 29 Jun 2010 15:31:51 +0000 (11:31 -0400)
horde/lib/Block/twitter_timeline.php

index 56d37c4..3895459 100644 (file)
@@ -214,9 +214,9 @@ class Horde_Block_Horde_twitter_timeline extends Horde_Block
 
             buildReply: function(id, userid, usertext) {
                 this.inReplyTo = id;
+                {$inputNode}.focus();
                 {$inputNode}.value = '@' + userid + ' ';
                 {$inReplyToNode}.update(' {$inReplyToText} ' + usertext);
-                {$inputNode}.focus();
             },
 
             updateCallback: function(response) {