From cebba0475a4522630dcbcfd4fa792ba31c085457 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Mon, 31 Oct 2011 18:04:39 +0100 Subject: [PATCH] Recursively parses 'suggestions' for bytarget (Spelling suggestions) --- js/pz2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/pz2.js b/js/pz2.js index 50ecd01..75fd309 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -660,6 +660,11 @@ pz2.prototype = } else if (bytarget[i].diagnostic == "2") { bytarget[i].diagnostic = "Temporary system error"; } + var targetsSuggestions = targetNodes[i].getElementsByTagName("suggestions"); + if (targetsSuggestions != undefined && targetsSuggestions.length>0) { + var suggestions = targetsSuggestions[0]; + bytarget[i]["suggestions"] = Element_parseChildNodes(suggestions); + } } context.bytargetCounter++; -- 1.7.10.4