모듈 선택기능 추가 (위젯의 단일/다수 위젯 선택, 첵크된 게시글 이동/복사시) 사용되며 virtualSite외의 사이트들도 검색후 선택이 가능하도록 개선

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5298 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-01-09 09:37:43 +00:00
parent 3345d21c4e
commit 906bb46d19
83 changed files with 970 additions and 543 deletions

View file

@ -25,22 +25,12 @@
<!--@end-->
</td>
</tr>
<!--@if(count($document_list) && $module_list)-->
<!--@if(count($document_list))-->
<tr>
<th scope="row"><div>{$lang->move_target_module}</div></th>
<td>
<select id="target_module" name="target_module" class="w400" onchange="doGetCategoryFromModule(this); return false;">
<!--@foreach($module_list as $module_category_srl => $modules )-->
<!--@if($modules->title)-->
<option disabled="disabled">{$modules->title}</option>
<!--@else-->
<option disabled="disabled">&nbsp;</option>
<!--@end-->
<!--@foreach($modules->list as $key => $val)-->
<option value="{$val->module_srl}">&nbsp; {$val->browser_title} ({$val->mid})</option>
<!--@end-->
<!--@end-->
</select>
<input type="hidden" name="target_module" id="target_module" value="" />
<input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" value="" /><a href="{getUrl('','module','module','act','dispModuleAdminSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
</td>
</tr>
<tr>

View file

@ -27,10 +27,7 @@ function completeManageDocument(ret_obj) {
}
/* 선택된 모듈의 카테고리 목록을 가져오는 함수 */
function doGetCategoryFromModule(obj) {
if(!obj) return;
var module_srl = obj.options[obj.selectedIndex].value;
function doGetCategoryFromModule(module_srl) {
var params = new Array();
params['module_srl'] = module_srl;
@ -85,3 +82,11 @@ function doCancelDeclare() {
function completeCancelDeclare(ret_obj) {
location.reload();
}
function insertSelectedModule(id, module_srl, mid, browser_title) {
var obj= xGetElementById('_'+id);
var sObj = xGetElementById(id);
sObj.value = module_srl;
obj.value = browser_title+' ('+mid+')';
doGetCategoryFromModule(module_srl);
}