diff vendor/plugins/redmine_bibliography/assets/javascripts/authors.js @ 624:11c8e189f8fc feature_36

Fix dumb code which toggled all description elements on the page, instead of only those in the right authorship
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 24 Aug 2011 16:05:15 +0100
parents a434a588f16c
children fccacd8505e3
line wrap: on
line diff
--- 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);