wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r19992: LJSUP-9742: There is no bubble ?\194?\17...

Committer: gprochaev
LJSUP-9742: There is no bubble ?\194?\171There is no entries to edit?\194?\187 on editjournal page

U   trunk/htdocs/editjournal.bml
U   trunk/htdocs/editjournal.bml.text
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-08 05:09:19 UTC (rev 19991)
+++ trunk/htdocs/editjournal.bml	2011-09-08 07:17:36 UTC (rev 19992)
@@ -157,6 +157,9 @@
             $ret .= "</li>";
 
         }
+        unless (@res) {
+            $ret .= BML::ml('.no_entries_to_edit');
+        }
         if ($show_ad) {
             my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 });
             $ret .= "<td valign='top'>$ad</td>" if $ad;
@@ -637,7 +640,7 @@
         my $prev_page_id = ($start_from > 0) ? ($start_from + $items_per_page) : 0;
         my $ymd = join "/", ($year, $month, $day);
         my %ymd_req = ($year && $month && $day && $show ne 'recent') ? ( ymd => $ymd ) : ();
-        while ($LJ::MAX_SCROLLBACK_LASTN = 50000, 
+        while ($usejournal_u && ($LJ::MAX_SCROLLBACK_LASTN = 50000,
             my @recent = LJ::get_recent_items({
                 itemshow  => $items_per_page,
                 err       => \$err,
@@ -649,7 +652,7 @@
                 order     => 'logtime',
                 %ymd_req,
                 ($only_me_checked) ? ('posterid' =>  $remote->{'userid'}) : (),
-            })) {
+            }))) {
 
             ## do not process entries twice
             @recent = grep { $entry_ids{$_->{'itemid'}} ? 0 : 1 } @recent;

Modified: trunk/htdocs/editjournal.bml.text
===================================================================
--- trunk/htdocs/editjournal.bml.text	2011-09-08 05:09:19 UTC (rev 19991)
+++ trunk/htdocs/editjournal.bml.text	2011-09-08 07:17:36 UTC (rev 19992)
@@ -21,6 +21,8 @@
 
 .recententry=Most recent entry
 
+.no_entries_to_edit=There is no entries to edit
+
 .success.delete=Journal entry was deleted.
 
 .success.deletespam=Additionally, the entry was marked as spam.  Thank you for your report.

Tags: bml, livejournal, text, wisest-owl
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