# HG changeset patch # User luisf # Date 1368204626 -3600 # Node ID a0488ec6979eafca3346a7b97ff1df7106c375fc # Parent f8bb7ccc6facb9b3e894989c2d336493684590bc cleaned the code. diff -r f8bb7ccc6fac -r a0488ec6979e plugins/redmine_bibliography/assets/javascripts/bibliography.js --- a/plugins/redmine_bibliography/assets/javascripts/bibliography.js Fri May 10 14:19:26 2013 +0100 +++ b/plugins/redmine_bibliography/assets/javascripts/bibliography.js Fri May 10 17:50:26 2013 +0100 @@ -1,11 +1,15 @@ + $("#publication_bibtex_entry_attributes_entry_type").live("change", function() { + $this = $(this); + $.ajax({ type: "POST", url: "/publications/show_bibtex_fields", - data: "value=" + $("#publication_bibtex_entry_attributes_entry_type").val(), + data: { + value: $this.val() + }, dataType: "script" }); return false; }); -