From e1d907ac56fcfe5c380ef781530488c799a1f477 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Fri, 30 Aug 2013 12:46:25 +0700 Subject: PNG support --- nbproject/build-impl.xml | 9 +++++++++ src/java/com/juick/http/www/PageTemplates.java | 6 +++--- src/java/com/juick/http/www/UserThread.java | 18 +++++++++--------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index ada51c23..a21325e8 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -532,6 +532,9 @@ exists or setup the property manually. For example like this: + + + @@ -543,6 +546,9 @@ exists or setup the property manually. For example like this: + + + @@ -696,6 +702,7 @@ exists or setup the property manually. For example like this: + @@ -704,6 +711,7 @@ exists or setup the property manually. For example like this: + @@ -1070,6 +1078,7 @@ exists or setup the property manually. For example like this: --> + diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 10c02a80..f2326b3e 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -434,10 +434,10 @@ public class PageTemplates { out.print("
" + txt + "
"); if (msg.AttachmentType != null) { - if (msg.AttachmentType.equals("jpg")) { - out.println("
\"\"/
"); - } else { + if (msg.AttachmentType.equals("mp4")) { out.println("
\"\"/
"); + } else { + out.println("
\"\"/
"); } } diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index 22914e54..3ba5c96b 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -133,10 +133,10 @@ public class UserThread { out.println("
" + txt + "
"); if (msg.AttachmentType != null) { - if (msg.AttachmentType.equals("jpg")) { - out.println("
\"\"/
"); - } else { + if (msg.AttachmentType.equals("mp4")) { out.println("
\"\"/
"); + } else { + out.println("
\"\"/
"); } } @@ -295,10 +295,10 @@ public class UserThread { } out.println("\">"); if (msg.AttachmentType != null) { - if (msg.AttachmentType.equals("jpg")) { - out.println("
\"\"/
"); - } else { + if (msg.AttachmentType.equals("mp4")) { out.println("
\"\"/
"); + } else { + out.println("
\"\"/
"); } } out.println("
\""
"); @@ -334,10 +334,10 @@ public class UserThread { out.print("
  • "); if (msg.AttachmentType != null) { - if (msg.AttachmentType.equals("jpg")) { - out.println("
    \"\"/
    "); - } else { + if (msg.AttachmentType.equals("mp4")) { out.println("
    \"\"/
    "); + } else { + out.println("
    \"\"/
    "); } } out.println("
    "); -- cgit v1.2.3