Mercurial > hg > soundsoftware-site
changeset 1390:ac480b6a13cf luisf
Removed javascript code from partials, so that it is included only once in the page.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Sep 2013 17:44:05 +0100 |
parents | 641ec1b288a6 |
children | 8580d1d1150e |
files | plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb plugins/redmine_bibliography/app/views/publications/_form.html.erb |
diffstat | 2 files changed, 0 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- 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 -%> - <div id="authors" class="fields"> <div id="<%= form_tag_id( f.object_name, :search_author ) %>" > <p>
--- 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; - });" - -%> - <h3><%= f.text_field :title, :required => true, :size => 70 %></h3> <div class="splitcontentleft">