changeset 1279:a0488ec6979e redmine-2.2-integration

cleaned the code.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 10 May 2013 17:50:26 +0100
parents f8bb7ccc6fac
children bdecc47b65b8
files plugins/redmine_bibliography/assets/javascripts/bibliography.js
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 });
-