Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/app/views/publications/show_bibtex_fields.js.erb @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +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(); } });