##// END OF EJS Templates
Option for long text custom fields to be displayed under the description field (#21705)....
Option for long text custom fields to be displayed under the description field (#21705). Based on patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16251 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15535:ef45304817e9
r15869:b40d66f39fa8
Show More
upload.js.erb
14 lines | 512 B | text/plain | TextLexer
Jean-Philippe Lang
Merged ajax_upload branch (#3957)....
r10748 var fileSpan = $('#attachments_<%= j params[:attachment_id] %>');
Jean-Philippe Lang
Display error messages when attachment validation fails (#13949)....
r11612 <% if @attachment.new_record? %>
fileSpan.hide();
alert("<%= escape_javascript @attachment.errors.full_messages.join(', ') %>");
<% else %>
Jean-Philippe Lang
Adds file custom field format (#6719)....
r15535 fileSpan.find('input.token').val('<%= j @attachment.token %>');
Jean-Philippe Lang
Merged ajax_upload branch (#3957)....
r10748 fileSpan.find('a.remove-upload')
.attr({
"data-remote": true,
"data-method": 'delete',
href: '<%= j attachment_path(@attachment, :attachment_id => params[:attachment_id], :format => 'js') %>'
})
.off('click');
Jean-Philippe Lang
Display error messages when attachment validation fails (#13949)....
r11612 <% end %>