# HG changeset patch # User luisf # Date 1380127445 -3600 # Node ID ac480b6a13cf42b6186fb3f1a8a82719f6aefb11 # Parent 641ec1b288a6c6dcb403f1452348d63096a9428e Removed javascript code from partials, so that it is included only once in the page. diff -r 641ec1b288a6 -r ac480b6a13cf plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Sep 25 17:43:16 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Sep 25 17:44:05 2013 +0100 @@ -1,10 +1,3 @@ -<%- content_for :header_tags do -%> - <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%> - <%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%> - <%= javascript_tag "$('.author_save_btn').live('click', disable_fields);" -%> - <%= javascript_tag "$('.author_edit_btn').live('click', enable_fields);" -%> -<%- end -%> -

diff -r 641ec1b288a6 -r ac480b6a13cf plugins/redmine_bibliography/app/views/publications/_form.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_form.html.erb Wed Sep 25 17:43:16 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_form.html.erb Wed Sep 25 17:44:05 2013 +0100 @@ -1,19 +1,3 @@ -<%= error_messages_for 'publication' %> - <%= javascript_tag " - $('#publication_bibtex_entry_attributes_entry_type').live('change', function() { - $this = $(this); - $.ajax({ - type: 'get', - url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}', - data: { - value: $this.val() - }, - dataType: 'script' - }); - return false; - });" - -%> -

<%= f.text_field :title, :required => true, :size => 70 %>