From 67e7f9e0f10493955f567f13148fb3b951a57619 Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Wed, 11 Dec 2019 16:11:23 +0100 Subject: [PATCH] fix slider --- neath.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neath.js b/neath.js index e14ed31..5fe6f11 100644 --- a/neath.js +++ b/neath.js @@ -595,7 +595,8 @@ function setupInterface(data, file, urls) { $("#docpos").val(data.data.length - startIndex); } - updatePreview($(':focus').data('tableInfo').nRow); + if ($(':focus').data('tableInfo')) + updatePreview($(':focus').data('tableInfo').nRow); } let wnd_listener = new window.keypress.Listener();