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

[livejournal] r19939: LJSUP-9517: Edit Entries, filter modific...

Committer: mchervonniy
LJSUP-9517: Edit Entries, filter modificators
U   trunk/htdocs/editjournal.bml
U   trunk/htdocs/stc/entry.css
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-02 04:56:03 UTC (rev 19938)
+++ trunk/htdocs/editjournal.bml	2011-09-02 05:47:53 UTC (rev 19939)
@@ -574,16 +574,18 @@
 
         $ret .= "<form action='editjournal.bml$getextra' method='get' class='b-editentries-form'>\n";
         $ret .= "<p>Show entries: 
-        <span class='b-editentries-cal'><i></i>Choose date</span>
+        <span class='b-editentries-cal'><i></i><b>Choose date</b></span> <span class='b-editentries-cal-clear'>( <b>Clear</b> )</span>
         <input type='hidden' name='year' value='$year'/>
         <input type='hidden' name='month' value='$month'/>
-        <input type='hidden' name='day' value='$day'/>
-        or <a href='editjournal.bml?show=recent&mode=init'>back to recent entries</a></p>";
+        <input type='hidden' name='day' value='$day'/>";
         $ret .= "<p>" . LJ::html_text({ 'name' => 'usejournal', 'size' => '20', 'maxlength' => '15', 'value' => $GET{'usejournal'} || $POST{'usejournal'}, 'class' => 'b-editentries-comm' });
         $ret .= LJ::html_submit(undef, $ML{'.btn.search'}) . "</p>";
         $ret .= "<p>" . LJ::html_check({ name => 'only_me', id => 'only_me',
                                 value => '1', selected =>  $only_me_checked });
         $ret .= "<label for='only_me'>Only my entries</label></p>"; 
+        if ($year || $month || $day || $show ne 'recent') {
+            $ret .= "Or <a href='editjournal.bml?show=recent&mode=init'>back to recent entries</a></p>";
+        }
         $ret .= "</form>\n";
 
         my $err = '';

Modified: trunk/htdocs/stc/entry.css
===================================================================
--- trunk/htdocs/stc/entry.css	2011-09-02 04:56:03 UTC (rev 19938)
+++ trunk/htdocs/stc/entry.css	2011-09-02 05:47:53 UTC (rev 19939)
@@ -774,6 +774,16 @@
 	background: url("/img/widget/wishlist/date-icon.gif");
 	margin: 0 1px 0 0;
 	}
+.b-editentries-cal B,
+.b-editentries-cal-clear B {
+	font-weight: normal;
+	border-bottom: 1px dotted #000;
+	cursor: pointer;
+	}
+.b-editentries-cal B:hover,
+.b-editentries-cal-clear B:hover {
+	border: none;
+	}
 .b-editentries-info {
 	max-width: 50%;
 	border: 1px solid #CCC;

Tags: bml, css, 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