From 9b94011a09685dec1b1b38fef8294c6ffa578079 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Tue, 23 Oct 2012 01:44:58 +0700 Subject: JS/CSS optimization --- src/java/com/juick/http/www/PageTemplates.java | 14 +++++--------- src/java/com/juick/http/www/UserThread.java | 26 ++++++-------------------- 2 files changed, 11 insertions(+), 29 deletions(-) (limited to 'src/java/com/juick/http/www') diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index a38b90f8..567bc639 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -54,12 +54,11 @@ public class PageTemplates { out.println(""); out.println(" "); out.println(" " + title + ""); - out.println(" "); + out.println(" "); out.println(" "); - out.println(" "); - out.println(" "); - out.println(" "); - out.println(" "); + out.println(" "); + out.println(" "); + out.println(" "); if (headers != null) { out.println(headers); } @@ -332,10 +331,7 @@ public class PageTemplates { if (rs.getString(12).equals("jpg")) { out.println("
\"\"/
"); } else { - out.println("
Attachment: Video
"); - out.println(" "); + out.println("
\"\"/
"); } } diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index 320c62ba..c335fcb9 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -83,11 +83,6 @@ public class UserThread { out.println(""); out.println(""); // topwrapper - out.println(""); - PageTemplates.pageFooter(request, out, locale, visitor); } finally { out.close(); @@ -150,16 +145,13 @@ public class UserThread { if (rs.getString(11).equals("jpg")) { out.println("
\"\"/
"); } else { - out.println("
Attachment: Video
"); - out.println(" "); + out.println("
\"\"/
"); } } if (cancomment) { out.println("
"); - out.println("
"); + out.println("
"); out.println("
"); } @@ -238,10 +230,10 @@ public class UserThread { if (listview) { out.print("" + rbuser.getString("View as tree") + ""); } else { - out.print("li').show(); $('#replies .msg-comments').hide(); return false\">" + rbuser.getString("Expand all") + " · " + rbuser.getString("View as list") + ""); + out.print("li').show(); $('#replies .msg-comments').hide(); $('#unfoldall').hide(); return false\">" + rbuser.getString("Expand all") + " · " + rbuser.getString("View as list") + ""); } out.print(""); - out.println("

"+rbuser.getString("Replies")+" (" + replies.size() + ")

"); + out.println("

" + rbuser.getString("Replies") + " (" + replies.size() + ")

"); out.println(""); out.println("