From 2978cbc1b3d4597adb81fcba30548c447e58b205 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 12 Oct 2003 14:30:46 +0000 Subject: When reordering a category, the page comes back with the top aligned with the moved category git-svn-id: http://piwigo.org/svn/trunk@198 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_list.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'admin/cat_list.php') diff --git a/admin/cat_list.php b/admin/cat_list.php index 474688b3e..cc4d88929 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -264,6 +264,7 @@ function display_cat_manager( $id_uppercat, $indent, $vtp->setVar( $sub, 'cat.class', $class ); $vtp->setVar( $sub, 'cat.indent', $indent ); $vtp->setVar( $sub, 'cat.name', $row['name'] ); + $vtp->setVar( $sub, 'cat.id', $row['id'] ); if ( $row['dir'] != '' ) { $vtp->addSession( $sub, 'storage' ); @@ -298,6 +299,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $min_rank ) { $vtp->addSession( $sub, 'up' ); + $vtp->setVar( $sub, 'up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&up='.$row['id'] ); $vtp->setVar( $sub, 'up.up_url', $url ); $vtp->closeSession( $sub, 'up' ); @@ -305,6 +307,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_up' ); + $vtp->setVar( $sub, 'no_up.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&last='.$row['id']); $vtp->setVar( $sub, 'no_up.last_url', $url ); $vtp->closeSession( $sub, 'no_up' ); @@ -312,6 +315,7 @@ function display_cat_manager( $id_uppercat, $indent, if ( $row['rank'] != $max_rank ) { $vtp->addSession( $sub, 'down' ); + $vtp->setVar( $sub, 'down.id', $row['id'] ); $url = add_session_id( './admin.php?page=cat_list&down='.$row['id']); $vtp->setVar( $sub, 'down.down_url', $url ); $vtp->closeSession( $sub, 'down' ); @@ -319,6 +323,7 @@ function display_cat_manager( $id_uppercat, $indent, else if ( $min_rank != $max_rank ) { $vtp->addSession( $sub, 'no_down' ); + $vtp->setVar( $sub, 'no_down.id', $row['id'] ); $url = add_session_id('./admin.php?page=cat_list&first='.$row['id']); $vtp->setVar( $sub, 'no_down.first_url', $url ); $vtp->closeSession( $sub, 'no_down' ); -- cgit v1.2.3