From 540aa6e3a2c8d210b514d1e7bb37d9c6e6ad2e33 Mon Sep 17 00:00:00 2001 From: "O. Heins" Date: Mon, 4 Sep 2017 14:23:44 +0200 Subject: [PATCH] Update responsive-tables.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jQuery.load(updateTables) fired an exception »Uncaught TypeError: a.indexOf is not a function«. Probably the function updateTables should only be initially executed. --- responsive-tables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responsive-tables.js b/responsive-tables.js index 1a862f1..057980d 100644 --- a/responsive-tables.js +++ b/responsive-tables.js @@ -16,7 +16,7 @@ $(document).ready(function() { } }; - $(window).load(updateTables); + updateTables(); $(window).on("redraw",function(){switched=false;updateTables();}); // An event to listen for $(window).on("resize", updateTables);