위젯 설정 버튼 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5125 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-12-18 07:23:03 +00:00
parent 44d15fde5f
commit c6397a1f83

View file

@ -712,9 +712,9 @@ function restoreWidgetButtons() {
var boxWidgetButton = xGetElementById('widgetBoxButton');
if(!widgetButton || !boxWidgetButton) return;
widgetButton.style.visibility = 'hidden';
document.body.appendChild(widgetButton);
xGetElementById("zonePageContent").parentNode.appendChild(widgetButton);
boxWidgetButton.style.visibility = 'hidden';
document.body.appendChild(boxWidgetButton);
xGetElementById("zonePageContent").parentNode.appendChild(boxWidgetButton);
}
function showWidgetButton(name, obj) {
@ -746,6 +746,7 @@ function widgetSetup(evt) {
showWidgetButton('widgetBoxButton', obj);
} else {
restoreWidgetButtons();
showWidgetButton('widgetButton', obj);
var p_obj = obj.parentNode;
while(p_obj) {
@ -755,7 +756,6 @@ function widgetSetup(evt) {
}
p_obj = p_obj.parentNode;
}
showWidgetButton('widgetButton', obj);
}
}