Print: change jQuery requirement to v1.2+

This commit is contained in:
Mottie 2014-06-11 21:41:40 -05:00
parent 9b4ce42286
commit 65c9fa40c2
2 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@
In <span class="version">v2.17.0</span>, added the <code>print_callback</code> option.<br>
<br>
</li>
<li>This widget will <strong>only work</strong> in tablesorter version 2.8+ and jQuery version 1.7+.</li>
<li>This widget will <strong>only work</strong> in tablesorter version 2.8+ and jQuery version <del>1.7+</del> 1.2.6+ (<span class="version updated">v2.17.2</span>; but filter &amp; columnSelector widgets still require jQuery 1.7+).</li>
<li>The user can print all, visible or filtered rows. And, choose to print all or selected columns (using the columnSelector widget).</li>
<li>By default, the widget is set to only print filtered rows &amp; visible columns.</li>
</ul>

View File

@ -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);