Ignore:
Timestamp:
Oct 12, 2003, 4:30:46 PM (21 years ago)
Author:
z0rglub
Message:

When reordering a category, the page comes back with the top aligned with
the moved category

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r108 r198  
    265265    $vtp->setVar( $sub, 'cat.indent', $indent );
    266266    $vtp->setVar( $sub, 'cat.name', $row['name'] );
     267    $vtp->setVar( $sub, 'cat.id', $row['id'] );
    267268    if ( $row['dir'] != '' )
    268269    {
     
    299300    {
    300301      $vtp->addSession( $sub, 'up' );
     302      $vtp->setVar( $sub, 'up.id', $row['id'] );
    301303      $url = add_session_id( './admin.php?page=cat_list&up='.$row['id'] );
    302304      $vtp->setVar( $sub, 'up.up_url', $url );
     
    306308    {
    307309      $vtp->addSession( $sub, 'no_up' );
     310      $vtp->setVar( $sub, 'no_up.id', $row['id'] );
    308311      $url = add_session_id( './admin.php?page=cat_list&last='.$row['id']);
    309312      $vtp->setVar( $sub, 'no_up.last_url', $url );
     
    313316    {
    314317      $vtp->addSession( $sub, 'down' );
     318      $vtp->setVar( $sub, 'down.id', $row['id'] );
    315319      $url = add_session_id( './admin.php?page=cat_list&down='.$row['id']);
    316320      $vtp->setVar( $sub, 'down.down_url', $url );
     
    320324    {
    321325      $vtp->addSession( $sub, 'no_down' );
     326      $vtp->setVar( $sub, 'no_down.id', $row['id'] );
    322327      $url = add_session_id('./admin.php?page=cat_list&first='.$row['id']);
    323328      $vtp->setVar( $sub, 'no_down.first_url', $url );
Note: See TracChangeset for help on using the changeset viewer.