Changeset 5193


Ignore:
Timestamp:
03/19/10 21:47:54 (10 years ago)
Author:
nikrou
Message:

remove picture delete displayed twice
redirect after delete to avoid errors

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r5079 r5193  
    8181  array_push($page['infos'], l10n('Virtual category deleted')); 
    8282  update_global_rank(); 
     83  redirect(get_root_url().'admin.php?page=cat_list'); 
    8384} 
    8485// request to add a virtual category 
  • trunk/admin/themes/default/template/cat_list.tpl

    r5123 r5193  
    6262        {/if} 
    6363        {if isset($category.U_DELETE) } 
    64         <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> 
     64        <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> 
    6565        {/if} 
    6666      </ul> 
Note: See TracChangeset for help on using the changeset viewer.