exceptionHandle
yanxd 11 years ago
parent 6baa87a8ea
commit 3e1a674ed9

@ -22,7 +22,7 @@
<td> <td>
<table width="580px" border="0"> <table width="580px" border="0">
<tr> <tr>
<td colspan="2" valign="top"><strong> <%= link_to homework.user, user_path(homework.user)%></strong> <span class="font_lighter">提交了作业</span></td> <td colspan="2" valign="top"><strong> <%= link_to homework.user, user_path(homework.user)%></strong> <span class="font_lighter">提交</span></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" valign="top">&nbsp; <td colspan="2" valign="top">&nbsp;

@ -14,7 +14,7 @@
<% else %> <% else %>
<% end %> <% end %>
<div class="bid_description"> <div class="bid_description">
<%= @bid.description %> <%= textilizable(@bid, :description) %>
<% if @bid.attachments.any?%> <% if @bid.attachments.any?%>
<% options = {:author => true} %> <% options = {:author => true} %>
<%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %> <%= render :partial => 'attachments/links', :locals => {:attachments => @bid.attachments, :options => options} %>

@ -51,7 +51,7 @@ function showSubH(/* ... */){
} }
} }
function deal_error (argument) { function deal_error (argument) {
$('#OpenWindow-content').html('<span class=\"font_color_orange\" > Network Error:<br/>http_status:' + argument.status + '<br/>statusText:' + argument.statusText + ' <\/span>\n'); $('#OpenWindow-content').html('<strong>Network Error</strong><span class=\"font_color_orange\" > <br/>http_status:' + argument.status + '<br/>statusText:' + argument.statusText + ' <\/span>\n');
} }
$.post(post_url,{}, deal_post).error(deal_error); $.post(post_url,{}, deal_post).error(deal_error);
} }

Loading…
Cancel
Save