diff --git a/common/js/common.js b/common/js/common.js index 0ccd57c43..7b81bd6c5 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -135,3 +135,15 @@ function setFixedPopupSize() { } } } + +// url이동 (open_window 값이 N 가 아니면 새창으로 띄움) +function move_url(url, open_wnidow) { + if(typeof(open_wnidow)=='undefined') open_wnidow = 'N'; + if(open_wnidow=='Y') { + var win = window.open(url); + win.focus(); + } else { + location.href=url; + } + return false; +} diff --git a/layouts/sample_layout/layout.html b/layouts/sample_layout/layout.html index 59807b275..3982d7f3c 100644 --- a/layouts/sample_layout/layout.html +++ b/layouts/sample_layout/layout.html @@ -18,7 +18,7 @@ - {$val['text']} + {$val['text']} @@ -35,7 +35,7 @@ - {$val['text']} + {$val['text']} @@ -50,7 +50,7 @@ - {$val['text']} + {$val['text']}