Mercurial > hg > soundsoftware-site
changeset 1095:116346b9cab4 bibplugin_bibtex
Fixes small bug that prevented the email domain from being created in the autocomplete_for_authors action.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 29 Nov 2012 14:29:31 +0000 |
parents | 9b7f99b7cb14 |
children | c60d957342b0 |
files | vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb |
diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Wed Nov 28 19:32:31 2012 +0000 +++ b/vendor/plugins/redmine_bibliography/app/helpers/publications_helper.rb Thu Nov 29 14:29:31 2012 +0000 @@ -38,19 +38,11 @@ logger.error { "DEBUG --> #{result}" } email_bit = result.mail.partition('@')[2] - email_bit = "(@#{email_bit})" unless email_bit = "" + email_bit = "(@#{email_bit})" unless email_bit == "" ["#{result.name} #{email_bit}", "#{result.class.to_s}_#{result.id.to_s}"] end -# @results.each do |result| -# email_bit = result.mail.partition('@')[2] -# if email_bit != "": -# email_bit = "(@#{email_bit})" -# end -# @author_options << ["#{result.name} #{email_bit}", "#{result.class.to_s}_#{#result.id.to_s}"] -# end - s = select_tag( form_tag_name(object_name, :author_search_results), options_for_select(author_options), { :id => form_tag_id(object_name, :author_search_results), :size => 3} ) s << observe_field( form_tag_id(object_name, :author_search_results), :on => 'click', :function => "alert('Element changed')", :with => 'q') else