diff plugins/redmine_bibliography/assets/javascripts/authors.js @ 1403:35732ac4324a biblio_alt_search_auth

hiding some fields; deleted unused code; fixed bug in ajax autocomplete function.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 30 Sep 2013 17:31:32 +0100
parents 0f918e37e1d6
children 00a51e442fe9
line wrap: on
line diff
--- a/plugins/redmine_bibliography/assets/javascripts/authors.js	Mon Sep 30 13:53:20 2013 +0100
+++ b/plugins/redmine_bibliography/assets/javascripts/authors.js	Mon Sep 30 17:31:32 2013 +0100
@@ -28,8 +28,6 @@
             $this.closest('div').find("input[id$='search_author_id']").val(ui.item.search_author_id);
             $this.closest('div').find("input[id$='search_author_tie']").attr('checked', 'checked');
 
-
-
             // triggers the save button
             $this.closest('div').next('div').find('.author_save_btn').click();
         }
@@ -37,7 +35,7 @@
         .data( "autocomplete" )._renderItem = function( ul, item ) {
             return $( "<li>" )
                 .data("item.autocomplete", item )
-                .append( "<a>" + item.label + "<br><em>" + item.email + "</em><br>" + item.intitution + "</a>" )
+                .append( "<a>" + item.label + "<br><em>" + item.email + "</em><br>" + item.institution + "</a>" )
                 .appendTo(ul);
             };
         });