Signed-off-by: alanlong9278 <547533434@qq.com>

redis_cache
alanlong9278 10 years ago
parent 53124710d8
commit 3d74734607

@ -141,7 +141,7 @@
<% end %> <% end %>
</ul> </ul>
</div> </div>
<div class="talkWrapMsg"><a class=" ml258" id="showgithelp<%= topic.id%>" value="show_help" onclick ="showhelpAndScrollToMessage('talkWrapMsg<%= topic.id %>','#showgithelp<%= topic.id%>'); " class="c_dblue lh23">展开回复(<%= topic.replies_count.to_s%>)</a></div> <div class="talkWrapMsg"><a class=" ml258" id="showgithelp<%= topic.id%>" value="show_help" onclick ="showhelpAndScrollToMessage('talkWrapMsg<%= topic.id %>','#showgithelp<%= topic.id%>','<%= topic.replies_count%>'); " class="c_dblue lh23">展开回复(<%= topic.replies_count.to_s%>)</a></div>
<% end %> <% end %>
</div> </div>

@ -144,7 +144,7 @@
<% end %> <% end %>
</ul> </ul>
</div> </div>
<div class="talkWrapMsg"><a class=" ml258" id="showgithelp<%= topic.id%>" value="show_help" onclick ="showhelpAndScrollToMessage('talkWrapMsg<%= topic.id %>','#showgithelp<%= topic.id%>'); " class="c_dblue lh23">展开回复(<%= topic.replies_count.to_s%>)</a></div> <div class="talkWrapMsg"><a class=" ml258" id="showgithelp<%= topic.id%>" value="show_help" onclick ="showhelpAndScrollToMessage('talkWrapMsg<%= topic.id %>','#showgithelp<%= topic.id%>','<%=topic.replies_count%>'); " class="c_dblue lh23">展开回复(<%= topic.replies_count.to_s%>)</a></div>
<% end %> <% end %>
</div> </div>

@ -23,7 +23,24 @@
</script> </script>
<script type="text/javascript">//侧导航 <script type="text/javascript">//侧导航
$(function(){
$(".subNav").click(function(){
$(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
$(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
// 修改数字控制速度, slideUp(500)控制卷起速度
$(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
})
})
function show_more_msg()
{
$("#course_description").toggleClass("course_description_none");
}
function show_more_msg02()
{
$("#news_description").toggleClass("news_description_none");
}
function show_newtalk() function show_newtalk()

@ -100,7 +100,7 @@ function showhelpAndScrollTo(id) {
information.attr("value", "show_help"); information.attr("value", "show_help");
} }
} }
function showhelpAndScrollToMessage(id, id1) { function showhelpAndScrollToMessage(id, id1, count) {
$('#' + id).toggle(); $('#' + id).toggle();
if(cookieget("repositories_visiable") == "true") if(cookieget("repositories_visiable") == "true")
{ {
@ -114,12 +114,12 @@ function showhelpAndScrollToMessage(id, id1) {
var val = information.attr("value"); var val = information.attr("value");
if(val=="show_help") if(val=="show_help")
{ {
$(id1).text("收起回复"); $(id1).text("收起回复(" + count + ")" );
information.attr("value", "hide_help"); information.attr("value", "hide_help");
} }
else else
{ {
$(id1).text("展开回复"); $(id1).text("展开回复(" + count + ")");
information.attr("value", "show_help"); information.attr("value", "show_help");
} }
} }

Loading…
Cancel
Save