aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-10-12 14:30:46 +0000
committerz0rglub <z0rglub@piwigo.org>2003-10-12 14:30:46 +0000
commit2978cbc1b3d4597adb81fcba30548c447e58b205 (patch)
treea28c4b50d38b600f0508e95cd47e7dbaa722c3c5 /admin
parentbe463866f6979b748aa389bf177142269a62fa69 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/cat_list.php5
1 files changed, 5 insertions, 0 deletions
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&amp;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&amp;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&amp;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&amp;first='.$row['id']);
$vtp->setVar( $sub, 'no_down.first_url', $url );
$vtp->closeSession( $sub, 'no_down' );