13 lines
528 B
Plaintext
13 lines
528 B
Plaintext
<% if @journal_destroyed.nil? %>
|
|
alert('<%=l(:notice_failed_delete)%>');
|
|
<% elsif (['Principal','Project', 'Bid', 'Contest', 'Softapplication','HomeworkAttach'].include? @journal_destroyed.jour_type)%>
|
|
var destroyedItem = $('#word_li_<%=@journal_destroyed.id%>')
|
|
destroyedItem.fadeOut(600,function(){
|
|
destroyedItem.remove();
|
|
});
|
|
<% else %>
|
|
|
|
$('#message').html('<%= escape_javascript(render(:partial => 'showjour', :locals => {:jour => @jours, :state => false})) %>');
|
|
$('#new_form_reference_user_id').val("");
|
|
<% end %>
|