window.print() is overridden by custom showoff function #172

Open
salimhb opened this Issue Mar 7, 2012 · 0 comments

Projects

None yet

1 participant

@salimhb
salimhb commented Mar 7, 2012

This code in showoff.js override the default behavior of the window.print() function which is supposed to bring up the browser's print dialog.

var print = function(text) {
    removeResults();
    var _results = $('<div>').addClass('results').html($.print(text, {max_string:500}));
    $('body').append(_results);
    _results.click(removeResults);
};

I suggest that it's renamed to something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment