Commit 070e87e4 authored by dkasliwal's avatar dkasliwal

Add horizontal line in between parent and drill-down


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104083 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 45feea04
......@@ -62,6 +62,61 @@ function createFusionChart(jsonObj, containerId, chartContainer,width,height,ima
/* Add 3 function for create dyanamic div for compliance Dashboard By Dhanendra On 28MAy2015 */
function outerDiv(outerDivId,type, cssName,parentId)
{
//alert("parentId :"+parentId);
/*added code to remove frame container if exists on change of view by SWATI on 09 May 2016*/
var elem = document.getElementById("frameContainerDiv");
if(elem!==null)
{
elem.parentNode.removeChild(elem);
}
/*Ended code to remove frame container if exists on change of view by SWATI on 09 May 2016*/
var mainOuterDiv = document.createElement('div');
mainOuterDiv.id = outerDivId+"DivOuter";
var outerDiv = document.createElement('div');
outerDiv.id = outerDivId+"Div";
if(cssName == null)
{
outerDiv.className = 'outerChartContainer';
}else
{
outerDiv.className = cssName;
}
//alert("after css");
var iDiv = document.createElement('div');
iDiv.id = outerDivId;
iDiv.className = outerDivId;
var headDiv = document.createElement('div');
if(type == "T")
{
headDiv.className = 'chartContainerGridHead';
}else{
headDiv.className = 'chartContainerHead';
}
headDiv.id = outerDivId+'head';
iDiv.appendChild(headDiv);
outerDiv.appendChild(iDiv);
if(parentId != "chartContainer")
{
var horizontalLine = document.createElement('hr');
horizontalLine.id = outerDivId+"Divhr";
horizontalLine.className = 'line';
mainOuterDiv.appendChild(horizontalLine);
}
mainOuterDiv.appendChild(outerDiv);
//document.getElementById('chartContainer').appendChild(outerDiv);
document.getElementById(parentId).appendChild(mainOuterDiv);
}
function outerDivDrillDown(outerDivId,type, cssName,parentId)
{
alert("in outerDivDrillDown parentId :"+parentId);
/*added code to remove frame container if exists on change of view by SWATI on 09 May 2016*/
var elem = document.getElementById("frameContainerDiv");
if(elem!==null)
......@@ -83,6 +138,10 @@ function outerDiv(outerDivId,type, cssName,parentId)
iDiv.id = outerDivId;
iDiv.className = outerDivId;
var lineDiv = document.createElement('hr');
//lineDiv.id = "createLine";
lineDiv.className = "line";
var headDiv = document.createElement('div');
if(type == "T")
{
......@@ -92,11 +151,14 @@ function outerDiv(outerDivId,type, cssName,parentId)
}
headDiv.id = outerDivId+'head';
iDiv.appendChild(headDiv);
outerDiv.appendChild(lineDiv);
outerDiv.appendChild(iDiv);
//document.getElementById('chartContainer').appendChild(outerDiv);
document.getElementById(parentId).appendChild(outerDiv);
}
function innerDiv(innerDivId,groupName)
{
var inDiv = document.createElement('div');
......@@ -227,6 +289,7 @@ function createGridFrameContainer()
function clearDivOnCloseButton(containerId)
{
document.getElementById(containerId).remove();
document.getElementById(containerId+"hr").remove();
}
function focusOnDivJSNI(focusDivID)
{
......
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