common.js에 iconpath 연산 코드 추가

This commit is contained in:
2018-05-05 19:49:07 +09:00
parent a1392652ae
commit cb2fbf1a32
+10
View File
@@ -118,4 +118,14 @@ var TemplateEngine = function (html, options) {
try { result = new Function('obj', code).apply(options, [options]); }
catch (err) { console.error("'" + err.message + "'", " in \n\nCode:\n", code, "\n"); }
return result;
}
function getIconPath(imgsvr, picture){
// ../d_shared/common_path.js 필요
if(!imgsvr){
return pathConfig.sharedIcon+'/'+picture;
}
else{
return pathConfig.root+'/d_pic/'+picture;
}
}