diff options
author | Ugnich Anton | 2014-02-23 12:11:58 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-02-23 12:11:58 +0700 |
commit | e67f01bb08125eae47c42965367dc96624e5f146 (patch) | |
tree | 416e60dc467ce78ec8584eda222c99204c4958a1 /src/java/com/juick/http/www/NewMessage.java | |
parent | 4c5feeaf06e2f160bd75bf1919cb9920835efc87 (diff) |
isMobileRequest
Diffstat (limited to 'src/java/com/juick/http/www/NewMessage.java')
-rw-r--r-- | src/java/com/juick/http/www/NewMessage.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/java/com/juick/http/www/NewMessage.java b/src/java/com/juick/http/www/NewMessage.java index 2c8aed9c..895bfe91 100644 --- a/src/java/com/juick/http/www/NewMessage.java +++ b/src/java/com/juick/http/www/NewMessage.java @@ -43,7 +43,10 @@ public class NewMessage { + "<script src=\"//static.juick.com/mc.js\" type=\"text/javascript\" defer=\"defer\"></script>" + "<script src=\"//static.juick.com/maps.js?2010111500\" type=\"text/javascript\" defer=\"defer\"></script>" + "<script src=\"//static.juick.com/post3.js\" type=\"text/javascript\" defer=\"defer\"></script>"); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } out.println("<section id=\"content\" class=\"pagetext\">"); out.println("<form action=\"/post\" method=\"post\" id=\"postmsg\" enctype=\"multipart/form-data\">"); @@ -68,7 +71,10 @@ public class NewMessage { printUserTags(sql, out, visitor); out.println("</section>"); - PageTemplates.pageFooter(request, out, visitor, false); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, false); + } + PageTemplates.pageEnd(out); } finally { out.close(); |