diff --git a/app/services/courses_service.rb b/app/services/courses_service.rb
index b97fa1a64..69864f226 100644
--- a/app/services/courses_service.rb
+++ b/app/services/courses_service.rb
@@ -418,7 +418,7 @@ class CoursesService
course.send(:safe_attributes=, params[:course], current_user)
#course.safe_attributes = params[:course]
#course.password = params[:course][:password]
- course.syllabus_id = params[:syllabus_id].to_i
+ #course.syllabus_id = params[:syllabus_id].to_i
course.time = params[:time]
course.term = params[:term]
course.end_time = params[:end_time]
diff --git a/app/views/layouts/base_users_new.html.erb b/app/views/layouts/base_users_new.html.erb
index 6f70353e3..2f3ef2928 100644
--- a/app/views/layouts/base_users_new.html.erb
+++ b/app/views/layouts/base_users_new.html.erb
@@ -166,13 +166,13 @@
<% else%>
-
+
TA的项目
(<%=@user.projects.visible.count%>)
diff --git a/app/views/poll/other_poll.js.erb b/app/views/poll/other_poll.js.erb
index 19dc17052..cbaa2bbec 100644
--- a/app/views/poll/other_poll.js.erb
+++ b/app/views/poll/other_poll.js.erb
@@ -1,6 +1,6 @@
<% if @polls.empty? %>
- alert('您目前其他课程无问卷可导入');
+ alert('您的其它班级下没有问卷可供导入');
<% else %>
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>');
diff --git a/app/views/syllabuses/_syllabus_member_list.html.erb b/app/views/syllabuses/_syllabus_member_list.html.erb
index 84bbe1d01..97a500f56 100644
--- a/app/views/syllabuses/_syllabus_member_list.html.erb
+++ b/app/views/syllabuses/_syllabus_member_list.html.erb
@@ -42,7 +42,9 @@
<% else %>
删除
<% end %>
- <% if i != 0 && i < count - 1 %>
+ <% if i == 0 && count == 1 %>
+
+ <% elsif i != 0 && i < count - 1 %>
<%= link_to('下移', {:controller => 'syllabus_member', :action => 'update_rank', :id => member.id, :syllabus => @syllabus.id, :opr => 'down'},:remote => true, :method => 'post', :class => "fr sy_btn_blue mr5", :title => '下移') %>
<%= link_to('上移', {:controller => 'syllabus_member', :action => 'update_rank', :id => member.id, :syllabus => @syllabus.id, :opr => 'up'},:remote => true, :method => 'post', :class => "fr sy_btn_blue mr5", :title => '上移') %>
<% elsif i < count - 1 %>
diff --git a/app/views/syllabuses/members.html.erb b/app/views/syllabuses/members.html.erb
index 456845400..2eb560116 100644
--- a/app/views/syllabuses/members.html.erb
+++ b/app/views/syllabuses/members.html.erb
@@ -13,11 +13,11 @@
<%= render :partial => 'syllabus_member_list' %>
- <% if User.current == @syllabus.user %>
+ <% if User.current == @syllabus.user || User.current.admin? %>
添加成员
<% end %>
- <% if User.current == @syllabus.user %>
+ <% if User.current == @syllabus.user || User.current.admin? %>
<%= form_tag url_for(:controller => 'syllabus_member', :action => 'create', :syllabus => @syllabus),:id => 'syllabus_member_add_form', :remote => true do |f|%>
diff --git a/app/views/syllabuses/show.html.erb b/app/views/syllabuses/show.html.erb
index d3398234a..b6c32f125 100644
--- a/app/views/syllabuses/show.html.erb
+++ b/app/views/syllabuses/show.html.erb
@@ -5,6 +5,14 @@
$(function() {
sd_create_editor_from_data(<%= @syllabus.id %>, null, "100%", "<%= @syllabus.class.to_s %>");
showNormalImage('syllabus_description_<%= @syllabus.id %>');
+ $("#syllabus_description_<%= @syllabus.id%> p,#syllabus_description_<%= @syllabus.id%> span,#syllabus_description_<%= @syllabus.id%> em").each(function(){
+ var postContent = $(this).html();
+ postContent = postContent.replace(/ /g," ");
+ postContent= postContent.replace(/ {2}/g," ");
+ postContent=postContent.replace(/ /g," ");
+ postContent=postContent.replace(/ /g," ");
+ $(this).html(postContent);
+ });
autoUrl('syllabus_description_<%= @syllabus.id %>');
});