53 lines
2.6 KiB
Plaintext
53 lines
2.6 KiB
Plaintext
<% issue_list(issues) do |issue, level| -%>
|
|
<script>
|
|
function expand_reply(container, btnid) {
|
|
var target = $(container);
|
|
var btn = $(btnid);
|
|
if (btn.data('init') == '0') {
|
|
btn.data('init', 1);
|
|
btn.html('收起回复');
|
|
target.show();
|
|
} else {
|
|
btn.data('init', 0);
|
|
btn.html('展开更多');
|
|
target.hide();
|
|
target.eq(0).show();
|
|
target.eq(1).show();
|
|
target.eq(2).show();
|
|
}
|
|
}
|
|
|
|
$(function () {
|
|
init_activity_KindEditor_data(<%= issue.id%>, null, "87%", "<%= issue.class.name %>");
|
|
showNormalImage('activity_description_<%= issue.id %>');
|
|
if ($("#intro_content_<%= issue.id %>").height() > 360) {
|
|
$("#intro_content_show_<%= issue.id %>").show();
|
|
}
|
|
$("#intro_content_show_<%= issue.id %>").click(function () {
|
|
$("#activity_description_<%= issue.id %>").toggleClass("maxh360");
|
|
$("#activity_description_<%= issue.id%>").toggleClass("lh18");
|
|
$("#intro_content_show_<%= issue.id %>").hide();
|
|
$("#intro_content_hide_<%= issue.id %>").show();
|
|
});
|
|
$("#intro_content_hide_<%= issue.id %>").click(function () {
|
|
$("#activity_description_<%= issue.id %>").toggleClass("maxh360");
|
|
$("#activity_description_<%= issue.id%>").toggleClass("lh18");
|
|
$("#intro_content_hide_<%= issue.id %>").hide();
|
|
$("#intro_content_show_<%= issue.id %>").show();
|
|
});
|
|
});
|
|
</script>
|
|
<%= render :partial => 'users/project_issue', :locals => {:activity => issue, :user_activity_id => issue.id} %>
|
|
<% end %>
|
|
<% if issues.count == 10%>
|
|
<div id="show_more_issues" class="loadMore mt10 f_grey">展开更多<%=link_to "", project_issues_path({:project_id => project.id}.merge(params)),:id => "more_issues_link",:remote => "true",:class => "none" %></div>
|
|
<%#= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
|
|
<% end%>
|
|
<!--<ul class="wlist">-->
|
|
<!--<%#= pagination_links_full issue_pages, issue_count, :per_page_links => false, :remote => true, :flag => true %>-->
|
|
<!--</ul>-->
|
|
<script type="text/javascript">
|
|
$("#show_more_issues").mouseover(function(){
|
|
$("#more_issues_link").click();
|
|
});
|
|
</script> |