diff options
-rw-r--r-- | admin/cat_list.php | 1 | ||||
-rw-r--r-- | admin/themes/default/template/cat_list.tpl | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 57abe3f85..7168b3fd0 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -80,6 +80,7 @@ if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser()) delete_categories(array($_GET['delete'])); array_push($page['infos'], l10n('Virtual category deleted')); update_global_rank(); + redirect(get_root_url().'admin.php?page=cat_list'); } // request to add a virtual category else if (isset($_POST['submitAdd'])) diff --git a/admin/themes/default/template/cat_list.tpl b/admin/themes/default/template/cat_list.tpl index 30b517a7b..431845d2a 100644 --- a/admin/themes/default/template/cat_list.tpl +++ b/admin/themes/default/template/cat_list.tpl @@ -61,7 +61,7 @@ <li><a href="{$category.U_MANAGE_PERMISSIONS}" title="{'Permissions'|@translate}" ><img src="{$themeconf.admin_icon_dir}/category_Permissions.png" class="button" alt="{'Permissions'|@translate}"></a></li> {/if} {if isset($category.U_DELETE) } - <li><a href="{$category.U_DELETE}" title="{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}"></a></li> + <li><a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/category_delete.png" class="button" alt="{'delete'|@translate}"></a></li> {/if} </ul> |