Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[livejournal] r22929: LJSUP-13431: Antispam for edited entries...

Committer: vvasin
LJSUP-13431: Antispam for edited entries in the communities. Community moderation.
U   trunk/htdocs/community/settings.bml
Modified: trunk/htdocs/community/settings.bml
===================================================================
--- trunk/htdocs/community/settings.bml	2012-09-19 12:38:10 UTC (rev 22928)
+++ trunk/htdocs/community/settings.bml	2012-09-19 12:53:21 UTC (rev 22929)
@@ -443,7 +443,7 @@
     $ret .= "<p class='input-wrapper'>";
     $ret .= LJ::html_check({ type => 'radio', id => 'moderate_filter', name => 'moderated', value => 'F', selected => ($info{moderated} eq 'F') ? 1 : 0 });
     $ret .= " <label for='moderate_filter'>$ML{'.label.moderationyes_filter'}</label><br />";
-    $ret .= "<a href='/community/whitelist.bml?authas=$GET{authas}' id='moderate_filter_link' style='display:none'>$ML{'.label.whitelist'}</a>";
+    $ret .= "<a href='/community/whitelist.bml?authas=$GET{authas}' id='moderate_filter_link'>$ML{'.label.whitelist'}</a>";
     $ret .= "<noscript><a href='/community/whitelist.bml?authas=$GET{authas}'>$ML{'.label.whitelist'}</a></noscript>";
     $ret .= "</p>";
     $ret .= "<p class='input-wrapper input-wrapper-whitelist'>";
@@ -458,24 +458,6 @@
         ($mode eq 'create' ? "$ML{'.button.createcommunity'}" : "$ML{'.button.changecommunity2'}") .
         "' /> standout?></div></form>";
 
-    $ret .= q|<script type="text/javascript">
-        (function()
-        {
-            var moderated_inp = $('moderate_filter'),
-                link = $('moderate_filter_link'),
-                inps = moderated_inp.form.moderated,
-                i = -1;
-            while (inps[++i])
-            {
-                inps[i].onclick = function()
-                {
-                    link.style.display = this == moderated_inp ? 'inline' : 'none';
-                }
-            }
-            moderated_inp.checked && (link.style.display = 'inline');
-        })();
-    </script>|;
-
     return $print_with_ad->($ret);
 }
 _code?>

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