From 3272d35cab8bf2cd416c54d2915bd8e6f6bb1282 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 9 Mar 2007 00:19:18 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@348 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/js/common.js | 12 ++++++++++++ layouts/sample_layout/layout.html | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) 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']}