Skip to content

Commit

Permalink
Merge pull request #359 from support-project/fix/issue113_notify
Browse files Browse the repository at this point in the history
#113 fix call notify method timing
  • Loading branch information
koda-masaru committed Apr 28, 2016
2 parents a36ca1e + e5231c8 commit 026899a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/main/webapp/WEB-INF/views/open/knowledge/list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,21 @@
<script type="text/javascript" src="<%=jspUtil.mustReloadFile("/js/knowledge-common.js")%>"></script>

<%
HttpSession session = request.getSession();
Boolean read = (Boolean) session.getAttribute(NoticesControl.READ_NOTICES);
if (read == null || !read) {
if (jspUtil.logined()) {
%>
<%-- ログインしているユーザは、常に通知を取得する(既読はユーザ毎に管理) --%>
<script type="text/javascript" src="<%=jspUtil.mustReloadFile("/js/mynotice.js")%>"></script>
<% } %>
<%
} else {
HttpSession session = request.getSession();
Boolean read = (Boolean) session.getAttribute(NoticesControl.READ_NOTICES);
if (read == null || !read) {
%>
<%-- ログインしていないユーザは全て表示されてしまうので、セッション単位に1回表示する --%>
<script type="text/javascript" src="<%=jspUtil.mustReloadFile("/js/mynotice.js")%>"></script>
<% }
}
%>
</c:param>

<c:param name="PARAM_CONTENT">
Expand Down

0 comments on commit 026899a

Please sign in to comment.