From a386ae24aca6ab7ad4f884d6f944a22e8e4ff94b Mon Sep 17 00:00:00 2001 From: Mottie Date: Mon, 14 Oct 2013 08:25:26 -0500 Subject: [PATCH] No more savePages js error. Fixes #387 --- addons/pager/jquery.tablesorter.pager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index c3b7ca4b..d720dfdf 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -528,7 +528,7 @@ c.appender = $this.appender; if (p.savePages && ts.storage) { - t = ts.storage(table, 'tablesorter-pager'); + t = ts.storage(table, 'tablesorter-pager') || {}; p.page = isNaN(t.page) ? p.page : t.page; p.size = isNaN(t.size) ? p.size : t.size; }