# HG changeset patch # User Chris Cannam # Date 1314198315 -3600 # Node ID 11c8e189f8fc33ab3b3a504e3ceba3d527145a59 # Parent a434a588f16c15470314bcec7068fc0f4dee3703 Fix dumb code which toggled all description elements on the page, instead of only those in the right authorship diff -r a434a588f16c -r 11c8e189f8fc vendor/plugins/redmine_bibliography/assets/javascripts/authors.js --- a/vendor/plugins/redmine_bibliography/assets/javascripts/authors.js Wed Aug 24 15:44:55 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/assets/javascripts/authors.js Wed Aug 24 16:05:15 2011 +0100 @@ -50,7 +50,7 @@ $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('input').each(function(s) { toggle_input_field(s, $this); }); - $$('p.description').each(function(s) { + $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('p.description').each(function(s) { s.toggle(); }); toggle_edit_save_button(form_object_id);