Move/Trash target UI fixed.(Modal -> Tree)

document_list.html / declared_list.html

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12543 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2013-01-14 05:32:20 +00:00
parent 6ebdbdda08
commit 8e62aacfb9
4 changed files with 75 additions and 51 deletions

View file

@ -108,6 +108,7 @@ body>.x,
.x_modal .x_modal-header{padding:15px;border-bottom:1px solid #aaa}
.x_modal .x_modal-header>h3{color:#fff;text-shadow:0 -1px 0 #000;font-size:16px}
.x_modal .x_modal-body{background:#fff;min-height:50px}
.x_modal-body:after{content:"";display:block;clear:both}
.x .x_control-group{padding-top:8px;margin-bottom:10px;border-top:1px dotted #ddd;clear:both}
.x .x_control-group:before{content:"";display:block;clear:both}
.x .x_control-group:first-child,
@ -190,6 +191,13 @@ body>.x,
.x_modal._common._nobody .x_modal-body,
.x_modal._common._type_alert ._cancel{display:none}
.x_modal._common._nobody .x_modal-footer{border-top:0}
.x_modal-body.showTree .moveList{float:left;width:60%}
.x_modal-body.showTree .moveTree{display:block !important;float:right;width:38%}
.x_modal-body.showTree .moveTree>h1{font-size:13px;color:#333;border-bottom:2px solid #ddd;padding:10px 0 7px 0}
@media all and (max-width:960px){
.x_modal-body.showTree .moveList,
.x_modal-body.showTree .moveTree{float:none;width:auto}
}
/* Image Sprite */
.x a[target="_blank"]:after,
.x>.body>.gnb>ul>li>a>i,

File diff suppressed because one or more lines are too long

View file

@ -113,26 +113,35 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<h3>{$lang->document_manager}: <span class="_sub"></span></h3>
</div>
<div class="x_modal-body">
<table width="100%" id="documentManageListTable" class="x_table x_table-striped x_table-hover">
<caption><strong>{$lang->selected_document} <span id="selectedDocumentCount"></span></strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->title}</th>
<th scope="col" class="nowr">{$lang->writer}</th>
<th scope="col" class="nowr">{$lang->status}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="x_control-group _moveTarget" style="position:relative" hidden>
<label>{$lang->selected_document_move}</label>
<input type="text" name="module_srl" class="module_search" />
</div>
<div class="x_control-group" style="padding-right:14px">
<label for="message">{$lang->message_notice}</label>
<textarea rows="4" cols="42" name="message_content" id="message" style="width:100%"></textarea>
</div>
<section class="moveList">
<table width="100%" id="documentManageListTable" class="x_table x_table-striped x_table-hover">
<caption><strong>{$lang->selected_document} <span id="selectedDocumentCount"></span></strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->title}</th>
<th scope="col" class="nowr">{$lang->writer}</th>
<th scope="col" class="nowr">{$lang->status}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="x_control-group _moveTarget" style="position:relative" hidden>
<label>{$lang->selected_document_move}</label>
<input type="text" name="module_srl" class="module_search" />
</div>
<div class="x_control-group" style="padding-right:14px;border-top:0">
<label for="message">{$lang->message_notice}</label>
<textarea rows="4" cols="42" name="message_content" id="message" style="width:100%"></textarea>
</div>
</section>
<section class="moveTree">
<h1>{$lang->msg_select_menu}</h1>
<p>{$lang->selected_document_move}</p>
<div class="tree">
&lt;!-- Tree Here --&gt;
</div>
</section>
</div>
<div class="x_modal-footer">
<button type="submit" name="type" value="" class="x_btn x_btn-inverse x_pull-right">{$lang->cmd_confirm}</button>
@ -159,15 +168,16 @@ jQuery(function($){
return false;
} else {
var $this = $(this);
var $moveTarget = $('._moveTarget');
var $manageForm = $('#manageForm');
var $modalBody = $manageForm.find('.x_modal-body');
var thisValue = $this.attr('data-value');
var thisText = $this.text();
getDocumentList();
$('#manageForm').find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]').val(thisValue).text(thisText);
$manageForm.find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]').val(thisValue).text(thisText);
if(thisValue == 'trash' || thisValue == 'delete' || thisValue == 'cancelDeclare'){
$moveTarget.hide().next().css('borderTopWidth','0');
} else {
$moveTarget.show().next().css('borderTopWidth','1px');
$modalBody.removeClass('showTree');
} else if(thisValue == 'move' || thisValue == 'copy') {
$modalBody.addClass('showTree');
}
}
});

View file

@ -128,26 +128,31 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<h3>{$lang->document_manager}: <span class="_sub"></span></h3>
</div>
<div class="x_modal-body">
<table width="100%" id="documentManageListTable" class="x_table x_table-striped x_table-hover">
<caption><strong>{$lang->selected_document} <span id="selectedDocumentCount"></span></strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->title}</th>
<th scope="col" class="nowr">{$lang->writer}</th>
<th scope="col" class="nowr">{$lang->status}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="x_control-group _moveTarget" style="position:relative" hidden>
<label>{$lang->selected_document_move}</label>
<input type="text" name="module_srl" data-disallowedType="page,_SHORTCUT,_ROOT" class="module_search" />
</div>
<div class="x_control-group" style="padding-right:14px">
<label for="message">{$lang->message_notice}</label>
<textarea rows="4" cols="42" name="message_content" id="message" style="width:100%"></textarea>
</div>
<section class="moveList">
<table width="100%" id="documentManageListTable" class="x_table x_table-striped x_table-hover">
<caption><strong>{$lang->selected_document} <span id="selectedDocumentCount"></span></strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->title}</th>
<th scope="col" class="nowr">{$lang->writer}</th>
<th scope="col" class="nowr">{$lang->status}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="x_control-group" style="padding-right:14px;border-top:0">
<label for="message">{$lang->message_notice}</label>
<textarea rows="4" cols="42" name="message_content" id="message" style="width:100%"></textarea>
</div>
</section>
<section class="moveTree" hidden>
<h1>{$lang->msg_select_menu}</h1>
<p>{$lang->selected_document_move}</p>
<div class="tree">
&lt;!-- Tree Here --&gt;
</div>
</section>
</div>
<div class="x_modal-footer">
<button type="submit" name="type" value="" class="x_btn x_btn-inverse x_pull-right">{$lang->cmd_confirm}</button>
@ -174,15 +179,16 @@ jQuery(function($){
return false;
} else {
var $this = $(this);
var $moveTarget = $('._moveTarget');
var $manageForm = $('#manageForm');
var $modalBody = $manageForm.find('.x_modal-body');
var thisValue = $this.attr('data-value');
var thisText = $this.text();
getDocumentList();
$('#manageForm').find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]').val(thisValue).text(thisText);
$manageForm.find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]').val(thisValue).text(thisText);
if(thisValue == 'trash' || thisValue == 'delete'){
$moveTarget.hide().next().css('borderTopWidth','0');
} else {
$moveTarget.show().next().css('borderTopWidth','1px');
$modalBody.removeClass('showTree');
} else if(thisValue == 'move' || thisValue == 'copy') {
$modalBody.addClass('showTree');
}
}
});