mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Unify UI behaviour for bans management
This commit is contained in:
parent
3215cad462
commit
5e28bc91ea
@ -83,13 +83,9 @@ if (isset($_POST['address'])) {
|
||||
);
|
||||
}
|
||||
|
||||
if (!$threadid) {
|
||||
header("Location: $mibewroot/operator/blocked.php");
|
||||
exit;
|
||||
} else {
|
||||
$page['saved'] = true;
|
||||
$page['address'] = $address;
|
||||
}
|
||||
|
||||
} else {
|
||||
$page['banId'] = topage($banId);
|
||||
$page['formaddress'] = topage($address);
|
||||
|
@ -24,6 +24,9 @@ function tpl_content() { global $page, $mibewroot, $errors;
|
||||
<?php echo getlocal2("page_ban.sent",array($page['address'])) ?>
|
||||
|
||||
<script type="text/javascript"><!--
|
||||
if(window.opener && window.opener.location) {
|
||||
window.opener.location.reload();
|
||||
}
|
||||
setTimeout( (function() { window.close(); }), 1500 );
|
||||
//--></script>
|
||||
<?php } else { ?>
|
||||
|
@ -37,9 +37,8 @@ require_once(dirname(__FILE__).'/inc_errors.php');
|
||||
|
||||
<div class="tabletool">
|
||||
<img src="<?php echo $mibewroot ?>/images/buttons/createban.gif" border="0" alt=""/>
|
||||
<a href="<?php echo $mibewroot ?>/operator/ban.php" title="<?php echo getlocal("page_bans.add") ?>">
|
||||
<?php echo getlocal("page_bans.add") ?>
|
||||
</a>
|
||||
<a href="<?php echo $mibewroot ?>/operator/ban.php" title="<?php echo getlocal("page_bans.add") ?>"
|
||||
onclick="this.newWindow = window.open('<?php echo $mibewroot ?>/operator/ban.php', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo getlocal("page_bans.add") ?></a>
|
||||
</div>
|
||||
<br clear="all"/>
|
||||
|
||||
@ -84,8 +83,8 @@ if( $page['pagination.items'] ) {
|
||||
<td>
|
||||
<a class="removelink" id="i<?php echo $b['banid'] ?>" href="<?php echo $mibewroot ?>/operator/blocked.php?act=del&id=<?php echo $b['banid'] ?><?php print_csrf_token_in_url() ?>">
|
||||
<?php echo getlocal("remove.item") ?></a>,
|
||||
<a href="<?php echo $mibewroot ?>/operator/ban.php?id=<?php echo $b['banid'] ?>">
|
||||
<?php echo getlocal("edit.item") ?></a>
|
||||
<a href="<?php echo $mibewroot ?>/operator/ban.php?id=<?php echo $b['banid'] ?>"
|
||||
onclick="this.newWindow = window.open('<?php echo $mibewroot ?>/operator/ban.php?id=<?php echo $b['banid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo getlocal("edit.item") ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user