view plugins/redmine_bibliography/assets/javascripts/bibliography.js @ 1466:834828a14f2b bug_598

Close obsolete branch bug_598
author Chris Cannam
date Fri, 21 Jun 2013 14:51:55 +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');
});