作品列表的作业描述只显示一半
This commit is contained in:
parent
9bfb749e70
commit
42afe33dab
|
@ -42,7 +42,7 @@
|
|||
</div>
|
||||
<div class="homeworkInfo" id="homeworkInformation">
|
||||
<div class="">
|
||||
<div class="homeworkDetail upload_img break_word list_style max_h54" id="homeworkDetail">
|
||||
<div class="homeworkDetail upload_img break_word list_style" id="homeworkDetail">
|
||||
<div id="homework_description">
|
||||
<%= homework.description.html_safe %>
|
||||
</div>
|
||||
|
|
|
@ -54,10 +54,6 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
if($("#homework_info_hidden").is(":hidden"))
|
||||
{
|
||||
$("#homework_info_show").show();
|
||||
}
|
||||
<% if !@is_evaluation && (!@is_teacher || params[:show_work_id].present?) || @message_student_work_id || (@is_evaluation && @is_focus == 1) %>
|
||||
<% if @message_student_work_id %>
|
||||
<% work = @homework.student_works.where("id =?", @message_student_work_id).first %>
|
||||
|
|
|
@ -57,29 +57,6 @@
|
|||
"<a href='javascript:' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
||||
$('#ajax-modal').parent().css("top","25%").css("left","35%").css("position","fixed").css("border","3px solid #269ac9");
|
||||
}
|
||||
|
||||
function show_or_hide_info(){
|
||||
$("#homeworkInformation").toggle();
|
||||
$("#homework_info_hidden").toggle();
|
||||
$("#homework_info_show").toggle();
|
||||
}
|
||||
|
||||
$(function(){
|
||||
if($("#homework_description").height() > 54) {
|
||||
$("#homeworkDetailShow").show();
|
||||
}
|
||||
$("#homeworkDetailShow").click(function(){
|
||||
$("#homeworkDetail").toggleClass("max_h54");
|
||||
$("#homeworkDetailShow").hide();
|
||||
$("#homeworkDetailHide").show();
|
||||
});
|
||||
$("#homeworkDetailHide").click(function(){
|
||||
$("#homeworkDetail").toggleClass("max_h54");
|
||||
$("#homeworkDetailHide").hide();
|
||||
$("#homeworkDetailShow").show();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div class="homepageRight mt0 ml10">
|
||||
|
|
Loading…
Reference in New Issue