NYULibraries/ex_cite

View on GitHub
app/assets/javascripts/citero_engine/submit_external_form.js

Summary

Maintainability
A
0 mins
Test Coverage
// A simple function to allow us to automatically submit forms for 
// pushing to other services such as EasyBib and RefWorks.
jQuery(document).ready(function($) {
    submit_external_form();
    // Automatically submit the form.
    function submit_external_form() {
        // Hide the page
        $("body").hide();
        $form = $(".external_form");
        $form.trigger("submit");
    }
});