changeset 1392:d262df85ac97 luisf

Removed unnecessary code and superfluous/deprecated functions.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 25 Sep 2013 17:48:24 +0100
parents 8580d1d1150e
children 67abd7b08753
files plugins/redmine_bibliography/assets/javascripts/authors.js
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- 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