mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Menu Selector
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12569 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
126a697d9c
commit
4ab54bcda0
3 changed files with 66 additions and 11 deletions
|
|
@ -123,6 +123,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<input type="hidden" name="module" value="document" />
|
||||
<input type="hidden" name="act" value="procDocumentManageCheckedDocument" />
|
||||
<input type="hidden" name="type" value="" />
|
||||
<input type="hidden" name="module_srl" value="" />
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList', 'is_secret', $is_secret, 'search_target', $search_target, 'search_keyword', $search_keyword)}" cond="!empty($search_target) && !empty($search_keyword)" />
|
||||
<div class="x_modal-header">
|
||||
<h3>{$lang->document_manager}: <span class="_sub"></span></h3>
|
||||
|
|
@ -149,8 +150,8 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<section class="moveTree" hidden>
|
||||
<h1>{$lang->msg_select_menu}</h1>
|
||||
<p>{$lang->selected_document_move}</p>
|
||||
<div class="tree">
|
||||
<!-- Tree Here -->
|
||||
<div class="tree _menuSelector">
|
||||
<select class="site_selector" style="width:100%;display:none"></select><div class="tree" style="height:250px;overflow-y:scroll;border:1px solid #aaa"></div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
@ -188,7 +189,23 @@ jQuery(function($){
|
|||
if(thisValue == 'trash' || thisValue == 'delete'){
|
||||
$modalBody.removeClass('showTree');
|
||||
} else if(thisValue == 'move' || thisValue == 'copy') {
|
||||
$.xeShowMenuSelectorIn($('._menuSelector'));
|
||||
|
||||
$modalBody.addClass('showTree');
|
||||
$tree = $('._menuSelector .tree');
|
||||
$tree.bind('select_node.jstree', function(a,b){
|
||||
var aSelected = [];
|
||||
$tree.find('.jstree-clicked').each(function(idx, el){
|
||||
var htParam = $.parseJSON($(this).attr('data-param'));
|
||||
aSelected.push({browser_title: htParam.sMenuTitle, mid: htParam.sMenuUrl, module_srl: htParam.sModuleSrl, menu_id: htParam.sMenuId, type: htParam.sType});
|
||||
//module_srl
|
||||
});
|
||||
|
||||
$('#manageForm input[name=module_srl]').val(aSelected[0].module_srl);
|
||||
});
|
||||
$('._menuSelector').bind('site_changed', function(){
|
||||
$('#manageForm input[name=module_srl]').val('');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue