view plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1344:e5d5cb1bc3be live

Merge from branch cannam
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 21 Jun 2013 11:19:15 +0100
parents 8516c3292901
children 5b8bd53fd65c
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;
});
$(document).ready(function() {
    $("#publication_bibtex_entry_attributes_entry_type").trigger('change');
});