Commit 65522c4a authored by steurwadkar's avatar steurwadkar

Made changes to fix special char issue in pophel xml in attribute

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@178797 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 79dc1ec0
......@@ -12,6 +12,7 @@ var lastSerachSuggestionMap = {};
var prevRemoveEnable = "";
var servletUrl = "/ibase/PlistgenWizServlet?";
var preFieldVal = "";
var thumbImgColNames = ["image_path","add_click_event","thumb_ref_id","thumb_ref_ser","thumb_ref_id_descr"];
if (window.ActiveXObject) /*code for IE6, IE5*/
......@@ -120,6 +121,9 @@ function parseJsonData(result)
default_col = (result.getElementsByTagName('DEFAULT_COL')[0].childNodes[0].nodeValue) - 1;
}
//Added by Santosh on 12-01-2018 to add default thumb image column in default_col
default_col = parseInt(default_col) + 5;
var detail = result.getElementsByTagName('DETAIL');
if (detail != undefined)
{
......@@ -148,7 +152,15 @@ function parseJsonData(result)
{
detailData = "-";
}
searchData['imgPth'] = detail[i].attributes.imagePath.value.trim();
if("image_path" == nodes[j].nodeName)
{
searchData['imgPth'] = value.trim();
}
if(thumbImgColNames.includes(nodes[j].nodeName.trim()))
{
continue;
}
searchData['id'] = id.trim();
searchData['label'] = value.trim();
searchData['value'] = id.trim();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment