Google Code Issue Id:4 Summary: Enhancement for Managing Documents Popup

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8410 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-30 15:25:15 +00:00
parent 28495431ff
commit ba8550b620
2 changed files with 11 additions and 3 deletions

View file

@ -77,6 +77,14 @@
$oModuleModel = &getModel('module');
// The combination of module categories list and the list of modules
if(count($module_list)>1) Context::set('module_list', $module_categories);
$module_srl=Context::get('module_srl');
Context::set('module_srl',$module_srl);
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
Context::set('mid',$module_info->mid);
Context::set('browser_title',$module_info->browser_title);
// Select Pop-up layout
$this->setLayoutPath('./common/tpl');
$this->setLayoutFile('popup_layout');

View file

@ -29,8 +29,8 @@
<tr>
<th scope="row"><div>{$lang->move_target_module}</div></th>
<td>
<input type="hidden" name="target_module" id="target_module" value="" />
<input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" value="" readonly="readonly" /><a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
<input type="hidden" name="target_module" id="target_module" value="{$module_srl}" />
<input type="text" name="_target_module" id="_target_module" class="inputTypeText w300" value="{$mid} ({$browser_title})" readonly="readonly" /><a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_select}</span></a>
</td>
</tr>
<tr>
@ -57,7 +57,7 @@
</div>
<script type="text/javascript">
jQuery(function() { doGetCategoryFromModule(jQuery('#target_module').get(0)); } );
jQuery(function() { doGetCategoryFromModule({$module_srl}); } );
</script>
<!--@end-->
</form>