#1716 课程讨论区-发布新贴点2次才能成功
This commit is contained in:
parent
b6327460a8
commit
0f9a82637e
|
@ -1,10 +1,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function submitCoursesBoard()
|
function submitCoursesBoard()
|
||||||
{
|
{
|
||||||
if(regexSubject()&®exContent())
|
if(regexSubject()&®exContent()){$("#message-form").submit();}
|
||||||
{
|
|
||||||
$("#message-form").submit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div id="add-message" class="add_frame" style="display:none;">
|
<div id="add-message" class="add_frame" style="display:none;">
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
<% if @project %>
|
<% if @project %>
|
||||||
<h3><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h3>
|
<h3>
|
||||||
|
<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %>
|
||||||
|
»
|
||||||
|
<%= l(:label_message_new) %>
|
||||||
|
</h3>
|
||||||
<% elsif @course %>
|
<% elsif @course %>
|
||||||
<h3><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :course_id => @course, :id => @board %> » <%= l(:label_message_new) %></h3>
|
<h3>
|
||||||
|
<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :course_id => @course, :id => @board %>
|
||||||
|
»
|
||||||
|
<%= l(:label_message_new) %>
|
||||||
|
</h3>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||||
|
|
Loading…
Reference in New Issue