From cb2fbf1a32bf724f045bcd99e238d844e033f48e Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 5 May 2018 19:49:07 +0900 Subject: [PATCH] =?UTF-8?q?common.js=EC=97=90=20iconpath=20=EC=97=B0?= =?UTF-8?q?=EC=82=B0=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/common.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hwe/js/common.js b/hwe/js/common.js index 142575e0..0ac528d6 100644 --- a/hwe/js/common.js +++ b/hwe/js/common.js @@ -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; + } } \ No newline at end of file