Mercurial > hg > soundsoftware-site
view plugins/redmine_bibliography/app/views/publications/show_bibtex_fields.js.erb @ 1621:3a510bf6a9bc
Merge from live branch
author | Chris Cannam |
---|---|
date | Fri, 13 Jul 2018 10:44:33 +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(); } });