diff options
author | Ugnich Anton | 2012-01-28 15:23:08 +0700 |
---|---|---|
committer | Ugnich Anton | 2012-01-28 15:23:08 +0700 |
commit | 2acfbc4184eec216c2a394029962aa2905c6b0a2 (patch) | |
tree | 800489f62d09f05ee2c9a5c4409a9c831dd8e59e /src/java/com/juick | |
parent | ad61ffdbaf004dd3b33adf8f2780500069fa097b (diff) |
Textarea autoresize update
Diffstat (limited to 'src/java/com/juick')
-rw-r--r-- | src/java/com/juick/http/www/Blogs.java | 3 | ||||
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 2 | ||||
-rw-r--r-- | src/java/com/juick/http/www/User.java | 3 | ||||
-rw-r--r-- | src/java/com/juick/http/www/UserThread.java | 6 |
4 files changed, 2 insertions, 12 deletions
diff --git a/src/java/com/juick/http/www/Blogs.java b/src/java/com/juick/http/www/Blogs.java index b4d30de0..1e212b7a 100644 --- a/src/java/com/juick/http/www/Blogs.java +++ b/src/java/com/juick/http/www/Blogs.java @@ -121,9 +121,6 @@ public class Blogs { } out.println("</ul>"); - out.println("<script type=\"text/javascript\">"); - out.println("$(\"textarea\").autoResize();"); - out.println("</script>"); if (mids.size() == 20) { String nextpage = "?before=" + mids.get(mids.size() - 1); diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 8bb77238..4997f778 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -374,7 +374,7 @@ public class PageTemplates { out.println(" <div class=\"msg-comments\"><a href=\"/" + uname + "/" + mid + "\">" + formatReplies(rs.getInt(10), locale) + "</a> " + rb.getString("(replies) by") + " " + repliesby + "</div>"); } else { out.println(" <form action=\"/post\" method=\"POST\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"mid\" value=\"" + mid + "\"/>"); - out.println(" <div class=\"msg-comment\"><textarea name=\"body\" rows=\"1\" placeholder=\"Add a comment...\" onkeypress=\"postformListener(this.form,event)\"></textarea></div>"); + out.println(" <div class=\"msg-comment\"><textarea name=\"body\" rows=\"1\" class=\"reply\" placeholder=\"Add a comment...\" onkeypress=\"postformListener(this.form,event)\"></textarea></div>"); out.println(" </form>"); } out.println(" </li>"); diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index 9d692a44..940cbfc4 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -109,9 +109,6 @@ public class User { } out.println("</ul>"); - out.println("<script type=\"text/javascript\">"); - out.println("$(\"textarea\").autoResize();"); - out.println("</script>"); if (mids.size() == 20) { String nextpage = "?before=" + mids.get(19); diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index 7248697b..eb3adfad 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -72,10 +72,6 @@ public class UserThread { printReplies(out, sql, MID, locale, listview); - out.println("<script type=\"text/javascript\">"); - out.println("$(\"textarea\").autoResize();"); - out.println("</script>"); - out.println("</div>"); out.println("</div>"); @@ -149,7 +145,7 @@ public class UserThread { out.println(" <div class=\"msg-txt\">" + txt + "</div>"); out.println(" <form action=\"/post\" method=\"POST\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"mid\" value=\"" + mid + "\"/>"); - out.println(" <div class=\"msg-comment\"><textarea name=\"body\" rows=\"1\" placeholder=\"Add a comment...\" onkeypress=\"postformListener(this.form,event)\"></textarea></div>"); + out.println(" <div class=\"msg-comment\"><textarea name=\"body\" rows=\"1\" class=\"reply\" placeholder=\"Add a comment...\" onkeypress=\"postformListener(this.form,event)\"></textarea></div>"); out.println(" </form>"); out.println(" </li>"); |