Revision 1279:a0488ec6979e plugins/redmine_bibliography/assets/javascripts
| plugins/redmine_bibliography/assets/javascripts/bibliography.js | ||
|---|---|---|
| 1 |
|
|
| 1 | 2 |
$("#publication_bibtex_entry_attributes_entry_type").live("change", function() {
|
| 3 |
$this = $(this); |
|
| 4 |
|
|
| 2 | 5 |
$.ajax({
|
| 3 | 6 |
type: "POST", |
| 4 | 7 |
url: "/publications/show_bibtex_fields", |
| 5 |
data: "value=" + $("#publication_bibtex_entry_attributes_entry_type").val(),
|
|
| 8 |
data: {
|
|
| 9 |
value: $this.val() |
|
| 10 |
}, |
|
| 6 | 11 |
dataType: "script" |
| 7 | 12 |
}); |
| 8 | 13 |
|
| 9 | 14 |
return false; |
| 10 | 15 |
}); |
| 11 |
|
|
Also available in: Unified diff