Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 * 동선의 인식에 방해되는 전체 체크박스 삭제
 * 카테고리의 select 옆쪽에 가장 자주쓰는 '공개' '비공개' 버튼 추가
 * TODO
  * 글 선택하기 버튼
  * 전체 선택 / 선택하지 않음 / 별표 글만 선택
  * 그러나 탭이 있는 상태에서 굳이 필요할지 모르겠다. 없을지도?
  • Loading branch information
inureyes committed May 27, 2008
1 parent aa86f3d commit aac4b2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
29 changes: 16 additions & 13 deletions interface/owner/entry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,6 @@ function checkAll(checked) {
}
}
}
if(document.getElementById('allChecked').checked != checked) {
document.getElementById('allChecked').checked = checked;
}
if(document.getElementById('allCheckedTop').checked != checked) {
document.getElementById('allCheckedTop').checked = checked;
}
Expand All @@ -336,6 +333,11 @@ function checkAll(checked) {
}
}

function processBatchByCommand(cmd) {
obj = new Object;
obj.value = cmd;
return processBatch(obj);
}
function processBatch(obj) {
mode = obj.value;
if (mode.match('^category_')) {
Expand Down Expand Up @@ -779,8 +781,11 @@ function closeWhatIsEolin() {
<div id="change-section-top" class="section">
<input type="checkbox" id="allCheckedTop" class="checkbox" onclick="checkAll(this.checked);" />
<span class="label"><?php echo _t('선택한 글을');?></span>
<select name="commandBoxTop" id="commandBoxTop" onchange="toggleDeleteButton(this)">
<option class="default" selected="selected"><?php echo _t('[행동을 지정합니다.]');?></option>
<input type="button" class="input-button" onclick="processBatchByCommand('publish');return false;" value="<?php echo _t('공개');?>"/>
<input type="button" class="input-button" onclick="processBatchByCommand('classify');return false;" value="<?php echo _t('비공개');?>"/>
<?php echo _t('또는');?>
<select name="commandBoxTop" id="commandBoxTop" onchange="toggleDeleteButton(this);return false;">
<option class="default" selected="selected"><?php echo _t('행동을 지정합니다.');?></option>
<?php
$categories = getCategories($blogid);
if (count($categories) >0) {
Expand Down Expand Up @@ -822,11 +827,6 @@ function closeWhatIsEolin() {
<input type="button" id="apply-button-top" class="apply-button input-button" value="<?php echo _t('적용');?>" onclick="processBatch(document.getElementById('commandBoxTop'));" />

</div>






<form id="list-form" method="post" action="<?php echo $blogURL;?>/owner/entry">
<input type="hidden" name="category" value="<?php echo $categoryId;?>" />
Expand All @@ -840,7 +840,7 @@ function closeWhatIsEolin() {
<table class="data-inbox" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="selection"><input type="checkbox" id="allChecked" class="checkbox" onclick="checkAll(this.checked);" /></th>
<th class="selection">&nbsp;</th>
<th class="starred">&nbsp;</th>
<th class="category"><span class="text"><?php echo _t('분류');?></span></th>
<th class="title"><span class="text"><?php echo _t('제목');?></span></th>
Expand All @@ -865,7 +865,7 @@ function closeWhatIsEolin() {
$className .= ' notice-line';
?>
<tr class="<?php echo $className;?> inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')">
<td class="selection"><input type="checkbox" class="checkbox" name="entry" value="<?php echo $entry['id'];?>" onclick="document.getElementById('allChecked').checked=false; toggleThisTr(this);" /></td>
<td class="selection"><input type="checkbox" class="checkbox" name="entry" value="<?php echo $entry['id'];?>" onclick="document.getElementById('allCheckedTop').checked=false;document.getElementById('allCheckedBottom').checked=false; toggleThisTr(this);" /></td>
<td class="starred"><?php
if($entry['starred'] == 2) {
?>
Expand Down Expand Up @@ -1001,8 +1001,11 @@ function closeWhatIsEolin() {
<div id="change-section-bottom" class="section">
<input type="checkbox" id="allCheckedBottom" class="checkbox" onclick="checkAll(this.checked);" />
<span class="label"><?php echo _t('선택한 글을');?></span>
<input type="button" class="input-button" onclick="processBatchByCommand('publish');return false;" value="<?php echo _t('공개');?>"/>
<input type="button" class="input-button" onclick="processBatchByCommand('classify');return false;" value="<?php echo _t('비공개');?>"/>
<?php echo _t('또는');?>
<select name="commandBoxBottom" id="commandBoxBottom" onchange="toggleDeleteButton(this)">
<option class="default" selected="selected"><?php echo _t('[행동을 지정합니다.]');?></option>
<option class="default" selected="selected"><?php echo _t('행동을 지정합니다.');?></option>
<?php
$categories = getCategories($blogid);
if (count($categories) >0) {
Expand Down
1 change: 0 additions & 1 deletion style/admin/whitedream/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ table.data-inbox tbody tr td.ip
#change-section-top
{
background-color : #FFFFFF;
border-bottom : 1px solid #BBBBBB;
margin : 5px auto 0 auto;
padding : 8px;
width : 924px;
Expand Down

0 comments on commit aac4b2b

Please sign in to comment.