view plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1465:ab8bd24eeb65 bug_635

Close obsolete branch bug_635
author Chris Cannam
date Fri, 19 Jul 2013 12:13:20 +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');
});