common.js에 iconpath 연산 코드 추가

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