2014-03-06 16:47:28 +08:00
|
|
|
$('#relation_file_form').show();
|
2014-07-02 14:58:52 +08:00
|
|
|
<% if @project%>
|
2014-03-06 16:47:28 +08:00
|
|
|
$('#relation_file').html('<%=render_attachments_for_new_project(@project, nil)%>');
|
2014-07-02 14:58:52 +08:00
|
|
|
<% elsif @course%>
|
|
|
|
$('#relation_file').html('<%=render_attachments_for_new_course(@course, nil)%>');
|
|
|
|
<% end%>
|
2014-08-28 17:30:08 +08:00
|
|
|
$('#attachments').children().css("width","100%").css("word-break","break-all").css("word-wrap", "break-word");
|
2014-07-02 14:58:52 +08:00
|
|
|
|