Commit 6261e6fb authored by vkadam's avatar vkadam

Change in JS [F15ESUN001]


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98580 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d38f0e1f
...@@ -76,6 +76,11 @@ ...@@ -76,6 +76,11 @@
var mainattachmentContainer = document.getElementById("fileViewer"); var mainattachmentContainer = document.getElementById("fileViewer");
var docNames = documents.split(","); var docNames = documents.split(",");
var tempVar=docNames[0];
if(tempVar.trim().length>0)
{
for (var inc = 0; inc < docNames.length; inc++ ) for (var inc = 0; inc < docNames.length; inc++ )
{ {
var iFrame = "<div id='viewerHeader" + inc + "' class='viewerHeader' >" + var iFrame = "<div id='viewerHeader" + inc + "' class='viewerHeader' >" +
...@@ -96,6 +101,7 @@ ...@@ -96,6 +101,7 @@
document.getElementById("att-iframe"+inc).srcdoc = "<p>You cannot view this file on browser.</p>"; document.getElementById("att-iframe"+inc).srcdoc = "<p>You cannot view this file on browser.</p>";
} }
} }
}
viewAttachloading( false ); viewAttachloading( false );
} }
......
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