Commit f8f158d9 authored by vkadam's avatar vkadam

Update in JS file


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99111 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 26eacc7b
......@@ -73,13 +73,16 @@
documents = result;
}
});
//alert("documents ["+documents +"]");
var mainattachmentContainer = document.getElementById("fileViewer");
var docNames = documents.split(",");
var tempVar=docNames[0];
//alert("tempVar["+tempVar+"]");
if(tempVar.trim().length>0)
if(tempVar.length > 0)
{
for (var inc = 0; inc < docNames.length; inc++ )
{
......@@ -96,7 +99,7 @@
var docType = docNames[inc].split(".")[1];
if ( docType != null && docType != undefined && ( docType.trim() == 'ods' || docType.trim() == 'log' || docType.trim() == 'sql') )
if ( (docType != null) && (docType != undefined) && ( (docType == 'ods') || (docType== 'log') || (docType == 'sql')) )
{
document.getElementById("att-iframe"+inc).srcdoc = "<p>You cannot view this file on browser.</p>";
}
......
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