diff --git a/app/views/users/_user_syllabus_list.html.erb b/app/views/users/_user_syllabus_list.html.erb
index e967383f6..3cc7bf61c 100644
--- a/app/views/users/_user_syllabus_list.html.erb
+++ b/app/views/users/_user_syllabus_list.html.erb
@@ -17,7 +17,6 @@
-
<% if @syllabus.any? %>
<% @syllabus.each_with_index do |syllabus, index|%>
@@ -27,7 +26,6 @@
<%=syllabus.title %>
- <%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr',:target => '_blank', :title => '查看课程' %>
更新时间:<%=format_date syllabus.updated_at %>
创建老师:<%=syllabus.user.show_name %>
班级:<%=courses.count %>
@@ -49,7 +47,7 @@
-
更新:<%=format_date(Time.at(course.time)) %>学期:<%=current_time_and_term(course) %>
+
更新:<%=course.time %>学期:<%=current_time_and_term(course) %>
<%=studentCount course %>学生|<%=visable_course_homework course %>作业|<%=visable_attachemnts_incourse(@course).count %>资源
@@ -67,8 +65,11 @@
<% end %>
+
+
+ <%=link_to '', syllabus_path(syllabus.id), :class => 'icons_sy_setting fr',:target =>'_blank', :title => '查看课程' %>
- <% end %>
+ <% end %>
<%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>
@@ -88,25 +89,29 @@
if (rightHeight < leftHeight) {
var diffHeight = leftHeight - rightHeight;
var tmpHeight = $(".syllabus_box").height() + diffHeight;
- $(".syllabus_box").css("height", tmpHeight);
+ $(".syllabus_box").css("minHeight", tmpHeight);
}
- $(".sy_courses_open").toggle(function(){
- //$(this).hide();
- $(this).parent().next().hide();
- $(this).children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
- //$(this).parent().next().show();
- },function(){
- $(this).parent().next().show();
- $(this).children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
- });
- $(".sy_courses_close").toggle(function(){
- //$(this).hide();
- $(this).parent().next().show();
- $(this).children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
- //$(this).parent().next().show();
- },function(){
- $(this).parent().next().hide();
- $(this).children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
+
+ $(".syllabus_courses_list").each(function(){
+ var syStaust = $(this).children(":first-child");
+
+ if (syStaust.hasClass("sy_courses_open")){
+ $(this).toggle(function(){
+ $(this).next().hide();
+ $(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
+ },function(){
+ $(this).next().show();
+ $(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
+ });
+ }else{
+ $(this).toggle(function(){
+ $(this).next().show();
+ $(this).children(":first-child").children(":first-child").addClass("icons_sy_open").removeClass("icons_sy_close");
+ },function(){
+ $(this).next().hide();
+ $(this).children(":first-child").children(":first-child").addClass("icons_sy_close").removeClass("icons_sy_open");
+ });
+ }
});
});
\ No newline at end of file
diff --git a/app/views/users/user_newfeedback.html.erb b/app/views/users/user_newfeedback.html.erb
index 24f625e03..ddf686b6a 100644
--- a/app/views/users/user_newfeedback.html.erb
+++ b/app/views/users/user_newfeedback.html.erb
@@ -19,7 +19,7 @@
<%= form_for('new_form',:url => leave_user_message_path(@user.id), :html =>{:id => "user_feedback_new"}, :method => "post") do |f|%>
<%=render :partial => "jour_form", :locals => {:f => f} %>
- 留言
+ 留言
私信
<% end %>