diff options
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>"); |