changeset 738:249cba787da0

Only set displayed previous entry if it is different from current.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 19 Nov 2014 03:14:03 +0200
parents f97498ef28f4
children 17820305bc77
files admajax.php
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Wed Nov 19 02:59:55 2014 +0200
+++ b/admajax.php	Wed Nov 19 03:14:03 2014 +0200
@@ -743,7 +743,8 @@
           if (!$errorSet)
           {
             stSetDisplayVar("compoCurrEntry", $curr);
-            stSetDisplayVar("compoPrevEntry", $prev);
+            if ($curr != $prev)
+              stSetDisplayVar("compoPrevEntry", $prev);
             stDisplayUpdated();
           }
         }