diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb index 6779090b..66ed8ba3 100644 --- a/app/views/libraries/show.html.erb +++ b/app/views/libraries/show.html.erb @@ -25,15 +25,17 @@

私有化原因 (请按照提示修改,并在完成编辑后重新提交) - 点击展开 +

+
<% end %> @@ -93,4 +95,10 @@ flowChart: true, // 默认不解析 sequenceDiagram: true // 默认不解析 }); + $(function(){ + var height=document.getElementById("private_reason_ul").offsetHeight; + if(parseInt(height)>166){ + $("#actionPanel").html('点击展开'); + } + }) \ No newline at end of file