班级模块功能修复

This commit is contained in:
daiao 2017-05-27 14:55:06 +08:00
parent 075afa0d9f
commit 22d7e92d4c
2 changed files with 2 additions and 3 deletions

View File

@ -362,7 +362,7 @@ class Course < ActiveRecord::Base
if mod.blank?
type = ["news", "boards", "attachment", "homework", "poll", "exercises", "statistics"]
for i in 0..6
CourseModule.create(:course_id => self.id, :type => type[i], :position => i + 1, :hidden => 0 )
CourseModule.create(:course_id => self.id, :module_type => type[i], :position => i + 1, :hidden => 0 )
end
mod = self.course_modules
end

View File

@ -23,7 +23,7 @@
<i class="fa fa-caret-down font-12" style="display:none;" aria-hidden="true"></i>
</p>
</div>
<!-- <p class="state">
<!-- <p class="state mt20">
<a href="javascript:void(0)" class="edu-filter-cir-grey mr5 active" id="syllabuses_processing">正在进行</a>
<a href="javascript:void(0)" class="edu-filter-cir-grey mr5" id="syllabuses_end">已结束</a>
</p>-->
@ -93,6 +93,5 @@
})
});*/
});
</script>