From 65c9fa40c2cba6d80229859e9aeebd6858c21b2a Mon Sep 17 00:00:00 2001 From: Mottie Date: Wed, 11 Jun 2014 21:41:40 -0500 Subject: [PATCH] Print: change jQuery requirement to v1.2+ --- docs/example-widget-print.html | 2 +- js/widgets/widget-print.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/example-widget-print.html b/docs/example-widget-print.html index fab71528..51e48739 100644 --- a/docs/example-widget-print.html +++ b/docs/example-widget-print.html @@ -119,7 +119,7 @@ In v2.17.0, added the print_callback option.

-
  • This widget will only work in tablesorter version 2.8+ and jQuery version 1.7+.
  • +
  • This widget will only work in tablesorter version 2.8+ and jQuery version 1.7+ 1.2.6+ (v2.17.2; but filter & columnSelector widgets still require jQuery 1.7+).
  • The user can print all, visible or filtered rows. And, choose to print all or selected columns (using the columnSelector widget).
  • By default, the widget is set to only print filtered rows & visible columns.
  • diff --git a/js/widgets/widget-print.js b/js/widgets/widget-print.js index d6b1705d..9451ee35 100644 --- a/js/widgets/widget-print.js +++ b/js/widgets/widget-print.js @@ -1,5 +1,5 @@ -/* Print widget (beta) for TableSorter 5/22/2014 (v2.17.0) - * Requires tablesorter v2.8+ and jQuery 1.7+ +/* Print widget (beta) for TableSorter 6/11/2014 (v2.17.2) + * Requires tablesorter v2.8+ and jQuery 1.2.6+ */ /*jshint browser:true, jquery:true, unused:false */ /*global jQuery: false */ @@ -15,8 +15,8 @@ printTable = ts.printTable = { init : function(c) { c.$table - .off(printTable.event) - .on(printTable.event, function(){ + .unbind(printTable.event) + .bind(printTable.event, function(){ // explicitly use table.config.widgetOptions because we want // the most up-to-date values; not the "wo" from initialization printTable.process(c, c.widgetOptions);