Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r19990: LJSUP-9746: Edit Entries, pagination dou...

Committer: mchervonniy
LJSUP-9746: Edit Entries, pagination doubled at bottom of entries list
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-08 03:28:06 UTC (rev 19989)
+++ trunk/htdocs/editjournal.bml	2011-09-08 04:32:25 UTC (rev 19990)
@@ -79,6 +79,7 @@
         my @res = @$ref;
         my $show_ad = $opts{show_ad} ? 1 : 0;
 
+        if ($opts{'prev'} || $opts{'next'}) {
         $ret .= "<p class='i-qotd-nav'>";
         if ($opts{'prev'}) {
             $ret .=  "<a class='i-qotd-nav-prev' href='$LJ::SITEROOT/editjournal.bml$getextra" . ($getextra ? "&" : "?") . "start_from=$opts{prev}'>prev</a>";
@@ -90,9 +91,11 @@
         } else {
             $ret .= "<span class='i-qotd-nav-next i-qotd-nav-next-dis'>next</span>";
         }
+        $ret .= "</p>";
         $ret .= "</div>"
 
             if @res;
+        }
 
         $ret .= "<ul class='b-editentries'>";
         foreach my $e_raw (@res) {
@@ -159,6 +162,22 @@
             $ret .= "<td valign='top'>$ad</td>" if $ad;
         }
         $ret .= "</ul>";
+
+        if ($opts{'prev'} || $opts{'next'}) {
+        $ret .= "<p class='i-qotd-nav'>";
+        if ($opts{'prev'}) {
+            $ret .=  "<a class='i-qotd-nav-prev' href='$LJ::SITEROOT/editjournal.bml$getextra" . ($getextra ? "&" : "?") . "start_from=$opts{prev}'>prev</a>";
+        } else {
+            $ret .=  "<span class='i-qotd-nav-prev i-qotd-nav-prev-dis'>prev</span>";
+        }
+        if ($opts{'next'}) {
+            $ret .= "<a class='i-qotd-nav-next' href='$LJ::SITEROOT/editjournal.bml$getextra" . ($getextra ? "&" : "?") . "start_from=$opts{next}'>next</a>";
+        } else {
+            $ret .= "<span class='i-qotd-nav-next i-qotd-nav-next-dis'>next</span>";
+        }
+        $ret .= "</p>";
+        }
+
         return $ret;
     };
 

Tags: bml, fiskus_boulder, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments