Revision 1326:8516c3292901 plugins/redmine_bibliography
| plugins/redmine_bibliography/app/views/publications/edit.html.erb | ||
|---|---|---|
| 1 | 1 |
<% content_for :header_tags do %> |
| 2 | 2 |
<%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> |
| 3 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
|
| 4 |
<%= javascript_tag 'Event.observe(window, "load", function(e){show_required_bibtex_fields(' + @bibtype_fields.to_json + ')});' %>
|
|
| 3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
|
| 4 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
|
|
| 5 | 5 |
<% end %> |
| 6 | 6 |
|
| 7 | 7 |
<h2><%=l(:label_publication_show)%></h2> |
| 8 | 8 |
|
| 9 |
<% labelled_form_for @publication, :url => { :project_id => @project, :action => :update } do |f| -%>
|
|
| 9 |
<%= labelled_form_for @publication, :url => { :project_id => @project, :action => :update } do |f| -%>
|
|
| 10 | 10 |
<%= render :partial => 'form', :locals => { :f => f } %>
|
| 11 | 11 |
|
| 12 | 12 |
<div style="clear:both"></div> |
| plugins/redmine_bibliography/assets/javascripts/bibliography.js | ||
|---|---|---|
| 13 | 13 |
|
| 14 | 14 |
return false; |
| 15 | 15 |
}); |
| 16 |
$(document).ready(function() {
|
|
| 17 |
$("#publication_bibtex_entry_attributes_entry_type").trigger('change');
|
|
| 18 |
}); |
|
Also available in: Unified diff