view plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1331:1e9b1bdd062e live

SHA1 -> SHA (module renamed)
author Chris Cannam
date Thu, 20 Jun 2013 11:33:30 +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');
});