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

[livejournal] r17392: LJSV-1099

Committer: gprochaev
LJSV-1099

U   trunk/htdocs/community/pending.bml
Modified: trunk/htdocs/community/pending.bml
===================================================================
--- trunk/htdocs/community/pending.bml	2010-09-16 08:14:11 UTC (rev 17391)
+++ trunk/htdocs/community/pending.bml	2010-09-16 08:20:44 UTC (rev 17392)
@@ -219,10 +219,12 @@
         # rows for existing users
         my $rc = 0;
         foreach (@users) {
+            my $disabled = $_->is_validated ? {} : { disabled => 1 };
+            my $selected = $_->is_validated ? 1 : 0;
             my $rstyle = ($rc++ & 1) ? '#efefef' : '#fff';
             $ret .= "<tr style='background-color: $rstyle;'><td>";
             $ret .= LJ::html_check({ id => 'pending_' . $_->userid, name => 'pending_' . $_->userid, 
-                                     selected => $jumpto ? ($_->user eq $jumpto ? 1 : 0) : 1 });
+                                     selected => $jumpto ? ($_->user eq $jumpto ? $selected : 0) : $selected, %$disabled });
             $ret .= "</td><td>" . LJ::ljuser($_->{user}) . "</td></tr>\n";
         }
 

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