From 6b4545d6b0fbaa1e22c69d2a3c45f63f4ecc36f2 Mon Sep 17 00:00:00 2001 From: cominch Date: Tue, 19 Jun 2012 01:40:22 +0200 Subject: [PATCH] Only load tag information if necessary --- htroot/interaction_elements/Tag_part.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/htroot/interaction_elements/Tag_part.html b/htroot/interaction_elements/Tag_part.html index f94496982..963ad6b2e 100644 --- a/htroot/interaction_elements/Tag_part.html +++ b/htroot/interaction_elements/Tag_part.html @@ -39,16 +39,20 @@ color: #5a346e; var vocs = vocabularies_string.split (","); var existingtags = ""; - - $.ajaxSetup({async: false}); var resultstring = ""; + + if (vocabularies_string != "") { -$.getJSON('/currentyacypeer/api/yacydoc.htm?urlhash=#[hash]#', function(data) { + $.ajaxSetup({async: false}); + + - resultstring = data.result; -}); + $.getJSON('/currentyacypeer/api/yacydoc.htm?urlhash=#[hash]#', function(data) { + resultstring = data.result; + }); + }