修复学生从个人主页课程标签页未参加课程状态下点击加入课程进入课程列表搜索课程失败bug

This commit is contained in:
z9hang 2014-06-06 14:01:03 +08:00
parent 4478c86cea
commit cf5c7a6610
2 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
<% if @bid.homework_type == Bid::HomeworkFile %> <% if @bid.homework_type == Bid::HomeworkFile %>
<!-- 提交文件类型 -->
<%= render :partial => 'homework' %> <%= render :partial => 'homework' %>
<% else %> <% else %>
<!-- 提交引用项目 -->
<script type="text/javascript" language="javascript"> <script type="text/javascript" language="javascript">
function clearInfo(id, content) { function clearInfo(id, content) {
var text = $('#' + id); var text = $('#' + id);

View File

@ -7,7 +7,7 @@
<% else %> <% else %>
<p class="font_description"> <p class="font_description">
<%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %> <%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'projects',:action=>'course', :project_type => 1}, :class => 'icon icon-add' %>
</p> </p>
<% end %> <% end %>
<% else %> <% else %>