위젯 설정 부분 오류 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5300 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-01-09 10:57:09 +00:00
parent efc0e0f12d
commit 16121c1c63
4 changed files with 23 additions and 9 deletions

View file

@ -23,7 +23,7 @@
* 2 : 1 + DB 쿼리
* 3 : 모든 로그
**/
define('__DEBUG__', 1);
define('__DEBUG__', 0);
/**
* @brief 디버그 메세지의 출력 장소

View file

@ -89,15 +89,18 @@ function doFillWidgetVars() {
fo_obj.widget_padding_bottom.value = selected_node.getAttribute("widget_padding_bottom");
fo_obj.widget_padding_top.value = selected_node.getAttribute("widget_padding_top");
for(var name in fo_obj) {
if(name.indexOf('_')==0) continue;
var node = fo_obj[name];
if(!node || typeof(node)=="undefined") continue;
var obj_list = new Array();
jQuery('form input, form select, form textarea').each( function(){
obj_list.push(this);
});
for(var j=0;j<obj_list.length;j++) {
var node = obj_list[j];
if(node.name.indexOf('_')==0) continue;
var length = node.length;
var type = node.type;
if((typeof(type)=='undefined'||!type) && typeof(length)!='undefined' && typeof(node[0])!='undefined' && length>0) type = node[0].type;
else length = 0;
var name = node.name;
switch(type) {
case "hidden" :
@ -304,3 +307,14 @@ function completeGetModuleSrl(ret_obj, response_tags) {
sObj.value = item[0].module_srl;
obj.value = item[0].browser_title+' ('+item[0].mid+')';
}
var windowLoadEventLoader = new Array();
function doAddWindowLoadEventLoader(func) {
windowLoadEventLoader.push(func);
}
function excuteWindowLoadEvent() {
for(var i=0;i<windowLoadEventLoader.length;i++) {
windowLoadEventLoader[i]();
}
}
xAddEventListener(window,'load',excuteWindowLoadEvent);

View file

@ -97,7 +97,7 @@
</ul>
<script type="text/javascript">
if(typeof(getModuleSrlList)!=='undefined') {
xAddEventListener(window,'load',function() { getModuleSrlList('{$id}'); });
doAddWindowLoadEventLoader( function() { getModuleSrlList('{$id}'); } );
}
</script>
<!--@elseif($var->type == "mid")-->
@ -105,7 +105,7 @@
<input type="text" name="_{$id}" id="_{$id}" value="" class="inputTypeText w300" readonly="readonly"/><a href="{getUrl('','module','module','act','dispModuleAdminSelectList','id',$id,'type','single')}" onclick="popopen(this.href, 'ModuleSelect');return false;" class="button blue"><span>{$lang->cmd_select}</span></a>
<script type="text/javascript">
if(typeof(getModuleSrlList)!=='undefined') {
xAddEventListener(window,'load',function() { getModuleSrl('{$id}'); });
doAddWindowLoadEventLoader( function() { getModuleSrl('{$id}'); });
}
</script>
<!--@end-->

View file

@ -4,7 +4,7 @@
<!--%import("../../admin/tpl/css/admin.css")-->
<script type="text/javascript">
xAddEventListener(window, "load", doFillWidgetVars);
doAddWindowLoadEventLoader(doFillWidgetVars);
</script>
<form action="./" method="get" onsubmit="return procFilter(this, generate_code_in_page);" id="fo_widget">