Revision 1276:20a6b12d1aba plugins/redmine_bibliography/app/views/publications
| plugins/redmine_bibliography/app/views/publications/show_bibtex_fields.js.erb | ||
|---|---|---|
| 6 | 6 |
input_id = $this.children('input').attr('id');
|
| 7 | 7 |
name = input_id.split('_')[4];
|
| 8 | 8 |
|
| 9 |
if ($.inArray(name, fields)){
|
|
| 9 |
if ($.inArray(name, fields) !== -1){
|
|
| 10 | 10 |
$this.show(); |
| 11 | 11 |
} |
| 12 |
else{
|
|
| 13 |
$this.hide(); |
|
| 14 |
} |
|
| 12 | 15 |
}); |
Also available in: Unified diff