# HG changeset patch # User luisf # Date 1369156333 -3600 # Node ID bb51e86fa1824d9bcc4c7afb03104d1ece8c3ca6 # Parent 97b98e7a6eeef0cff20f3df16bdcd21aa29aa18a removed deprecated rails functions diff -r 97b98e7a6eee -r bb51e86fa182 plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue May 21 18:11:44 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Tue May 21 18:12:13 2013 +0100 @@ -11,11 +11,11 @@

-
+
-
+
-
+

@@ -40,12 +40,7 @@

- <%- if params[:action] == 'new' -%> - <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> - <%- else -%> - <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %> - <%- end -%> - + <%= button_to_function l(:label_save_author), {}, :id => form_tag_id( f.object_name, :edit_save_button ) %> <%= link_to_remove_fields l("remove_author"), f %>

diff -r 97b98e7a6eee -r bb51e86fa182 plugins/redmine_bibliography/assets/javascripts/authors.js --- a/plugins/redmine_bibliography/assets/javascripts/authors.js Tue May 21 18:11:44 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/authors.js Tue May 21 18:12:13 2013 +0100 @@ -45,6 +45,12 @@ }; }); + +$("input[id$='identify_author_yes']").live("click", function() { + console.log("aaaa"); +}); + + function toggle_div(div_id){ $("#" + div_id).toggle(0.3); }