Revision 1274:5ea1a213c7a5 plugins/redmine_bibliography/assets
| plugins/redmine_bibliography/assets/javascripts/bibliography.js | ||
|---|---|---|
| 1 |
$("#publication_bibtex_entry_attributes_entry_type").live("change", function() {
|
|
| 2 |
console.log("AJAX RULEZ");
|
|
| 3 |
|
|
| 4 |
$.ajax({
|
|
| 5 |
type: "POST", |
|
| 6 |
url: "/publications/show_bibtex_fields", |
|
| 7 |
data: "value=" + $("#publication_bibtex_entry_attributes_entry_type").val(),
|
|
| 8 |
dataType: "script" |
|
| 9 |
}); |
|
| 10 |
|
|
| 11 |
return false; |
|
| 12 |
}); |
|
| 13 |
|
|
| plugins/redmine_bibliography/assets/javascripts/bibtex.js | ||
|---|---|---|
| 1 | 1 |
function toggleBibtex(el) {
|
| 2 |
var dd = Element.up(el).next('dd')
|
|
| 2 |
var dd = Element.up(el).next('dd');
|
|
| 3 | 3 |
|
| 4 | 4 |
dd.toggleClassName('collapsed');
|
| 5 | 5 |
Effect.toggle(dd, 'slide', {duration:0.2});
|
Also available in: Unified diff