tt25 (owner)

Revisions

gist: 97675 Download_button fork
public
Public Clone URL: git://gist.github.com/97675.git
Embed All Files: show embed
Diff #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- twitternotifier.xml.orig 2009-04-19 01:17:00.000000000 +0900
+++ twitternotifier.xml 2009-04-19 01:17:09.000000000 +0900
@@ -333,6 +333,8 @@
  input.value = this.text;
           this.setAttribute("charcount", this.text.length == 0 ? "" : 140 - this.text.length);
           this.setAttribute("charover", (this.text.length > 140) ? 1 : 0);
+ this.input.setAttribute("multiline", "true");
+ this.showTextBox(true);
 
           input.select();
           input.focus();
@@ -535,16 +537,14 @@
       <method name="showTextBox">
         <parameter name="force"/>
  <body><![CDATA[
- var rows = (this.input.value.length != 0) ? 5 : 0;
- if (rows == 0) return;
-
+ var rows=5;
           var changed = this.enlargeInputBox(rows);
 
           this.input.setAttribute("rows", rows);
- this.input.setAttribute("multiline", rows ? "true" : "false");
+ //this.input.setAttribute("multiline", rows ? "true" : "false");
 
           if (force || changed) {
- setTimeout("gTwitterNotifier.setFocusToInput()", 50);
+ setTimeout("gTwitterNotifier.setFocusToInput()", 0);
           }
         ]]></body>
       </method>