Mercurial > hg > soundsoftware-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
623:a434a588f16c | 624:11c8e189f8fc |
---|---|
48 | 48 |
49 function toggle_save_author(form_object_id, $this){ | 49 function toggle_save_author(form_object_id, $this){ |
50 $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('input').each(function(s) { | 50 $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('input').each(function(s) { |
51 toggle_input_field(s, $this); | 51 toggle_input_field(s, $this); |
52 }); | 52 }); |
53 $$('p.description').each(function(s) { | 53 $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('p.description').each(function(s) { |
54 s.toggle(); | 54 s.toggle(); |
55 }); | 55 }); |
56 toggle_edit_save_button(form_object_id); | 56 toggle_edit_save_button(form_object_id); |
57 toggle_div("publication_authorships_attributes_" + form_object_id +"_search_author"); | 57 toggle_div("publication_authorships_attributes_" + form_object_id +"_search_author"); |
58 } | 58 } |