Revision 1378:0b2a75f60952 plugins
| plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb | ||
|---|---|---|
| 1 | 1 |
<%- content_for :header_tags do -%> |
| 2 | 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
| 3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 4 |
<%= javascript_tag "$('.author_save_btn').live('click', toggle_fields);" -%>
|
|
| 3 | 5 |
<%- end -%> |
| 4 | 6 |
|
| 5 | 7 |
<div id="authors" class="fields"> |
| ... | ... | |
| 35 | 37 |
|
| 36 | 38 |
<div> |
| 37 | 39 |
<p> |
| 38 |
<%= button_to_function l(:label_save_author), '', :id => form_tag_id( f.object_name, :edit_save_button ) -%>
|
|
| 40 |
<%= button_to_function l(:label_save_author), '', :id => form_tag_id(f.object_name, :edit_save_button), :class => 'author_save_btn' -%>
|
|
| 39 | 41 |
<%= link_to_remove_fields l("remove_author"), f %>
|
| 40 | 42 |
</p> |
| 41 | 43 |
</div> |
| plugins/redmine_bibliography/app/views/publications/_form.html.erb | ||
|---|---|---|
| 2 | 2 |
<%= javascript_tag " |
| 3 | 3 |
$('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
|
| 4 | 4 |
$this = $(this); |
| 5 |
|
|
| 6 | 5 |
$.ajax({
|
| 7 | 6 |
type: 'get', |
| 8 | 7 |
url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
|
| ... | ... | |
| 11 | 10 |
}, |
| 12 | 11 |
dataType: 'script' |
| 13 | 12 |
}); |
| 14 |
|
|
| 15 | 13 |
return false; |
| 16 | 14 |
});" |
| 17 | 15 |
-%> |
Also available in: Unified diff