Skip to content

Commit

Permalink
refs #1725 : added - close button on delete / modify pop-up (modal)
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Jan 18, 2015
1 parent 17ad992 commit bd21f78
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion interface/blog/comment/delete/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<form name="deleteComment" method="post" action="<?php echo $context->getProperty('uri.blog');?>/comment/delete/<?php echo $context->getProperty('suri.id');?>">
<div id="comment-box">
<img src="<?php echo $context->getProperty('service.path') . $context->getProperty('admin.skin');?>/image/img_comment_popup_logo.gif" alt="<?php echo _text('텍스트큐브 로고');?>" />

<a onclick="closeDialog();" href="#" class="close-button"><span>X</span></a>
<div id="command-box">
<?php
$render = true;
Expand Down
6 changes: 5 additions & 1 deletion resources/script/common2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,11 @@ function openCenteredDialog(url, dialogId, width, height) {

function closeDialog() {
var scope = (window.location !== window.parent.location ? window.parent : window);
scope.tcDialog.close();
if (scope == window) {
scope.close();
} else {
scope.tcDialog.close();
}
return false;
}

Expand Down
Binary file added skin/admin/canon/image/btn_close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion skin/admin/canon/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<adminSkin version="1.1" language="ko">
<information>
<name>Canon</name>
<version>1.9</version>
<version>1.10.2</version>
<description><![CDATA[텍스트큐브 1.8의 관리자 화면 스킨입니다. Safari/Google Chrome/Firefox에서 동작합니다.]]></description>
<license><![CDATA[GPL]]></license>
</information>
Expand Down
16 changes: 16 additions & 0 deletions skin/admin/canon/popup-comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ body
border-radius: 2px;
}

/* Close button */
a.close-button {
display:block;
position:absolute;
width:30px;
height:30px;
top:10px;
right:10px;
color:#fff;
background-image: url("./image/btn_close.png");
}

a.close-button span {
display:none;
}

/* Ask whether edit or delete ********************************************************************/

#comment-box
Expand Down

0 comments on commit bd21f78

Please sign in to comment.