comparison plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1282:8d30e7644b75 redmine-2.2-integration

fixed a few routes (using GET instead of POST ). Simplified JS code.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 13 May 2013 18:02:38 +0100
parents a0488ec6979e
children 8516c3292901
comparison
equal deleted inserted replaced
1281:e9bfba17e791 1282:8d30e7644b75
1 1
2 $("#publication_bibtex_entry_attributes_entry_type").live("change", function() { 2 $("#publication_bibtex_entry_attributes_entry_type").live("change", function() {
3 $this = $(this); 3 $this = $(this);
4 4
5 $.ajax({ 5 $.ajax({
6 type: "POST", 6 type: "get",
7 url: "/publications/show_bibtex_fields", 7 url: "/publications/show_bibtex_fields",
8 data: { 8 data: {
9 value: $this.val() 9 value: $this.val()
10 }, 10 },
11 dataType: "script" 11 dataType: "script"