view 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
line wrap: on
line source

$("#publication_bibtex_entry_attributes_entry_type").live("change", function() {
    $this = $(this);

    $.ajax({
        type: "get",
        url: "/publications/show_bibtex_fields",
        data: {
            value: $this.val()
        },
        dataType: "script"
    });

    return false;
});