点击展开

dev_bj
caishi 5 years ago
parent 696190000d
commit 3611934456

@ -25,15 +25,17 @@
<p class="mb10 clearfix">
<span class="color-grey-6 font-16 mr10">私有化原因</span>
<span class="color-grey-c font-12">(请按照提示修改,并在完成编辑后重新提交)</span>
<a href="javascript:void(0)" class="color-blue fr" at="0" onclick="getMore(this)">点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i></a>
<a href="javascript:void(0)" class="color-blue fr" id="actionPanel" at="0" onclick="getMore(this)"></a>
<div class="private_reason">
<ul id="private_reason_ul">
<% @library_applies.each do |apply| %>
<li>
<p class="color-grey-9"><%= apply.updated_at.strftime('%Y-%m-%d %H:%M') %></p>
<p class="lineh-25 font-16 break-word"><%= apply.reason %></p>
</li>
<% end %>
</ul>
</div>
</div>
<% end %>
@ -93,4 +95,10 @@
flowChart: true, // 默认不解析
sequenceDiagram: true // 默认不解析
});
$(function(){
var height=document.getElementById("private_reason_ul").offsetHeight;
if(parseInt(height)>166){
$("#actionPanel").html('点击展开<i class="iconfont icon-xiajiantou color-blue font-14 ml5"></i>');
}
})
</script>
Loading…
Cancel
Save