From bad0e166d50cb29642a313aada9c06a2a13bf493 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 3 Jul 2013 14:21:56 +0000 Subject: [PATCH] fix JS type errors if sort_menu is disabled --- experiments/spclient/mkws.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 213bfbe..5d8be8d 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -288,8 +288,10 @@ function triggerSearch () function loadSelect () { if (document.mkwsSelect) { - curSort = document.mkwsSelect.mkwsSort.value; - recPerPage = document.mkwsSelect.mkwsPerpage.value; + if (document.mkwsSelect.mkwsSort) + curSort = document.mkwsSelect.mkwsSort.value; + if (document.mkwsSelect.mkwsPerpage) + recPerPage = document.mkwsSelect.mkwsPerpage.value; } } -- 1.7.10.4