# HG changeset patch # User luisf # Date 1380127704 -3600 # Node ID d262df85ac973c80597a5957813c67c0f5e89409 # Parent 8580d1d1150ea27a5ab2a8869dd3f633c63dfbd6 Removed unnecessary code and superfluous/deprecated functions. diff -r 8580d1d1150e -r d262df85ac97 plugins/redmine_bibliography/assets/javascripts/authors.js --- a/plugins/redmine_bibliography/assets/javascripts/authors.js Wed Sep 25 17:44:48 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/authors.js Wed Sep 25 17:48:24 2013 +0100 @@ -3,10 +3,6 @@ var regexp = new RegExp("new_" + association, "g"); $(link).before(content.replace(regexp, new_id)); - - if(action != "new"){ - toggle_save_author(new_id, $(link)); - } } function remove_fields(link) { @@ -57,17 +53,3 @@ $this.closest('div').next().find("input[id$='search_author_class']").val(''); }); -function toggle_div(div_id){ - $("#" + div_id).toggle(0.3); -} - -function toggle_save_author(form_object_id, $this){ - $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('input').each(function(s) { - toggle_input_field(s, $this); - }); - $('publication_authorships_attributes_' + form_object_id + '_edit_author_info').select('p.description').each(function(s) { - s.toggle(); - }); - toggle_edit_save_button(form_object_id); - toggle_div("publication_authorships_attributes_" + form_object_id +"_search_author"); -} \ No newline at end of file