diff plugins/redmine_bibliography/assets/javascripts/authors.js @ 1286:d0d6bbe9f2e0 redmine-2.2-integration

removed unused code; renamed variables.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 14 May 2013 19:09:34 +0100
parents 22551cc54749
children 7e89ba7fac48
line wrap: on
line diff
--- a/plugins/redmine_bibliography/assets/javascripts/authors.js	Tue May 14 16:05:54 2013 +0100
+++ b/plugins/redmine_bibliography/assets/javascripts/authors.js	Tue May 14 19:09:34 2013 +0100
@@ -24,7 +24,8 @@
             $this.closest('div').next().find("input[id$='name_on_paper']").val(ui.item.value);
             $this.closest('div').next().find("input[id$='institution']").val(ui.item.institution);
             $this.closest('div').next().find("input[id$='email']").val(ui.item.email);
-            $this.closest('div').next().find("input[id$='object_class']").val(ui.item.object_class);
+            $this.closest('div').next().find("input[id$='search_author_class']").val(ui.item.search_author_class);
+            $this.closest('div').next().find("input[id$='search_author_id']").val(ui.item.search_author_id);
         }
     });
 });
@@ -66,10 +67,10 @@
 function toggle_edit_save_button(object_id){
     $button = $('publication_authorships_attributes_' + object_id + '_edit_save_button');
     if ($button.value == "Edit author"){
-	$button.value = "Save author";
+        $button.value = "Save author";
     } else {
-	$button.value = "Edit author";
-    };
+        $button.value = "Edit author";
+    }
 }
 
 function toggle_save_author(form_object_id, $this){