Permalink
Browse files

Moving slide menu js to MenuTag for optimization. It has no sense els…

…ewhere
  • Loading branch information...
1 parent 623f917 commit 537d8248680ab6b6b82edf4817d17a58ec013b7e @jpaoletti committed Mar 3, 2012
View
1 modules/jpm-struts1-jar/src/main/java/jpaoletti/jpm/struts/tags/MenuTag.java
@@ -28,6 +28,7 @@ public int doStartTag() throws JspException {
try {
final JspWriter out = pageContext.getOut();
out.println("<div id='menu' class='jqueryslidemenu'>");
+ out.println("<script type='text/javascript' src='" + getContextPath() + "/js/jqueryslidemenu.js'></script>");
out.println("<ul>");
if (pmsession != null && pmsession.getMenu() != null) {
View
1 modules/jpm-struts1/src/main/webapp/WEB-INF/tags/page.tag
@@ -15,7 +15,6 @@
<link rel="shortcut icon" href="${es.templatePath}/img/favicon.ico" />
<script type="text/javascript" src="${es.context_path}/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${es.context_path}/js/jquery.dataTables.js"></script>
- <script type="text/javascript" src="${es.context_path}/js/jqueryslidemenu.js"></script>
<script type="text/javascript" src="${es.context_path}/js/misc.js"></script>
<script type="text/javascript" src="${es.context_path}/js/jquery.hotkeys.js"></script>
<script type="text/javascript" src="${es.context_path}/js/jquery-ui-1.8.16.custom.min.js"></script>

0 comments on commit 537d824

Please sign in to comment.