diff --git a/modules/widget/tpl/js/widget_admin.js b/modules/widget/tpl/js/widget_admin.js
index 2c7c7f34e..c80fed18b 100644
--- a/modules/widget/tpl/js/widget_admin.js
+++ b/modules/widget/tpl/js/widget_admin.js
@@ -80,23 +80,6 @@ function getWidgetVars() {
}
doFillWidgetVars();
- /*
- if(!opener || !opener.selectedWidget || !opener.selectedWidget.getAttribute("widget")) return;
- selected_node = opener.selectedWidget;
-
- var fo_widget = jQuery('#fo_widget');
- var attrs = selected_node.attributes;
- for (i=0; i< attrs.length ; i++){
- var input = jQuery("[name='"+attrs[i].name+"']" ,'#fo_widget');
- if( input.size() == 0){
- jQuery('').val(attrs[i].value).prependTo(fo_widget);
- }else{
- if(!input.val() && attrs[i].value ){
- input.val(attrs[i].value);
- }
- }
- }
- */
}
/* 페이지 모듈에서 내용의 위젯을 더블클릭하여 수정하려고 할 경우 */
@@ -183,15 +166,6 @@ function doFillWidgetVars() {
}
-/*
- var marginLeft = 0;
- if(selected_node.style.marginLeft) marginLeft = parseInt(selected_node.style.marginLeft.replace(/px$/,''),10);
- var marginRight = 0;
- if(selected_node.style.marginRight) marginRight = parseInt(selected_node.style.marginRight.replace(/px$/,''),10);
- var border = 0;
- if(selected_node.style.border) border= parseInt(selected_node.style.boarder.replace(/px$/,''),10);
-*/
-
var style = selected_node.getAttribute("style");
if(typeof(style)=="object") style = style["cssText"];
fo_obj.style.value = style;
@@ -231,7 +205,7 @@ function insertSelectedModule(id, module_srl, mid, browser_title) {
// 위젯의 대상 모듈 입력기 (다중 선택)
function insertSelectedModules(id, module_srl, mid, browser_title) {
- var sel_obj = xGetElementById('_'+id);
+ var sel_obj = jQuery('#_'+id)[0];
for(var i=0;i