aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_network.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-26 14:53:24 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-26 14:53:24 +0200
commit94317854665bc64c53271daada2ada15d238c988 (patch)
tree9e60e11c0a34df404da23020a83ef4c1f7597a61 /view/js/mod_network.js
parent953391cca92537614b929034792429ee92b18798 (diff)
downloadvolse-hubzilla-94317854665bc64c53271daada2ada15d238c988.tar.gz
volse-hubzilla-94317854665bc64c53271daada2ada15d238c988.tar.bz2
volse-hubzilla-94317854665bc64c53271daada2ada15d238c988.zip
omit js error if saved searsches are turned off
Diffstat (limited to 'view/js/mod_network.js')
-rw-r--r--view/js/mod_network.js3
1 files changed, 2 insertions, 1 deletions
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);
});