Commit 469f62b0 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

правки с картинками темы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66564 954022d7-b5bf-4e40-9824-e11837661b57
parent 6328c24f
......@@ -85,7 +85,13 @@ DocumentUrls.prototype =
},
addImageUrl : function(strPath, url){
},
getImageUrl : function(strPath){
getImageUrl : function(strPath){
if (0 === strPath.indexOf('theme'))
return null;
if (window.editor && window.editor.ThemeLoader && window.editor.ThemeLoader.ThemesUrl != "" && strPath.indexOf(window.editor.ThemeLoader.ThemesUrl) == 0)
return null;
return this.documentUrl + "/media/" + strPath;
},
getImageLocal : function(url){
......@@ -97,7 +103,13 @@ DocumentUrls.prototype =
imagePath2Local : function(imageLocal){
return this.getImageLocal(imageLocal);
},
getUrl : function(strPath){
getUrl : function(strPath){
if (0 === strPath.indexOf('theme'))
return null;
if (window.editor && window.editor.ThemeLoader && window.editor.ThemeLoader.ThemesUrl != "" && strPath.indexOf(window.editor.ThemeLoader.ThemesUrl) == 0)
return null;
return this.documentUrl + "/media/" + strPath;
},
getLocal : function(url){
......
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