From 94317854665bc64c53271daada2ada15d238c988 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 26 Apr 2018 14:53:24 +0200 Subject: omit js error if saved searsches are turned off --- view/js/mod_network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/js/mod_network.js b/view/js/mod_network.js index 2899bbacd..22a5e9ba6 100644 --- a/view/js/mod_network.js +++ b/view/js/mod_network.js @@ -1,4 +1,5 @@ $(document).ready(function() { - $("#search-text").contact_autocomplete(baseurl + '/search_ac','',true); + if($("#search-text").length) + $("#search-text").contact_autocomplete(baseurl + '/search_ac','',true); }); -- cgit v1.2.3