Commit f36bc070 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

refactoring checkRasterImageId

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64854 954022d7-b5bf-4e40-9824-e11837661b57
parent 789f7adb
......@@ -70,25 +70,9 @@ function scRGB_to_sRGB(value)
return 1;
}
function checkRasterImageId(rasterImageId)
{
//return rasterImageId;
// if ( 0 !== rasterImageId.indexOf("http:") && 0 !== rasterImageId.indexOf("data:") && 0 !== rasterImageId.indexOf("https:") && 0 !== rasterImageId.indexOf("ftp:") && 0 !== rasterImageId.indexOf("file:") )
// {
var imageLocal = g_oDocumentUrls.getImageLocal(rasterImageId);
if(imageLocal)
{
return imageLocal;
}
else
{
return rasterImageId;
}
// }
// else
// {
// return rasterImageId;
// }
function checkRasterImageId(rasterImageId) {
var imageLocal = g_oDocumentUrls.getImageLocal(rasterImageId);
return imageLocal ? imageLocal : rasterImageId;
}
......
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