Skip to content

Compatibility jQuery 3 #24

Description

@cavo789

Hi all

(sorry, I don't know yet how to suggest a Pull request)

I've made a very small changes in the jquery.print-preview.js file in order to be compatible with jQuery 3.1.

Original lines:

- $('img', print_frame_ref).load(function() {
   print_frame.height($('body', print_frame.contents())[0].scrollHeight);
});

Once modified :

+ $('img', print_frame_ref).on('load', function() {
   print_frame.height($('body', print_frame.contents())[0].scrollHeight);
);

The change concern the first line : don't call anymore .load(function() {...}) but use .on('load',function() {...} );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions