Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/app/views/publications/show_bibtex_fields.js.erb @ 1524:82fac3dcf466 redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 11 Sep 2014 10:24:38 +0100 |
parents | 20a6b12d1aba |
children |
line wrap: on
line source
fields = <%= @fields.to_json.html_safe -%>; $.each($(".bibtex"), function( key, value ) { $this = $(this); input_id = $this.children('input').attr('id'); name = input_id.split('_')[4]; if ($.inArray(name, fields) !== -1){ $this.show(); } else{ $this.hide(); } });