juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18216: LJSUP-7866 ML-variables for deleting com...

Committer: iaskarov
LJSUP-7866 ML-variables for deleting comment bubble
U   trunk/bin/upgrading/en.dat
U   trunk/cgi-bin/LJ/S2/EntryPage.pm
U   trunk/htdocs/talkread.bml
Modified: trunk/bin/upgrading/en.dat
===================================================================
--- trunk/bin/upgrading/en.dat	2011-02-04 10:07:24 UTC (rev 18215)
+++ trunk/bin/upgrading/en.dat	2011-02-04 10:35:40 UTC (rev 18216)
@@ -38,6 +38,15 @@
 cleanhtml.suspend_msg_with_supportid|staleness=1
 cleanhtml.suspend_msg_with_supportid=This is a suspended entry. <a [[aopts]]>An unsuspension request</a> has been opened, and your entry will be reviewed soon.
 
+comment.delete.q=Delete comment?
+comment.cancel=Delete
+comment.delete=Delete
+comment.delete.all=Delete all %username% comments in this post
+comment.delete.all.sub=Delete thread (all subcomments)
+comment.ban.user=Ban %username% from commenting
+comment.mark.spam=Mark this comment as spam
+comment.delete=Delete comment? 
+
 contentflag.viewingconcepts|staleness=1
 contentflag.viewingconcepts=You are about to view content that may not be appropriate for minors.
 

Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-02-04 10:07:24 UTC (rev 18215)
+++ trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-02-04 10:35:40 UTC (rev 18216)
@@ -72,6 +72,17 @@
                     js/thread_expander.js
                     ));
 
+    if($remote) {
+        LJ::need_string(qw/ comment.delete.q
+                            comment.cancel
+                            comment.delete
+                            comment.delete.all
+                            comment.delete.all.sub
+                            comment.ban.user
+                            comment.mark.spam
+                            comment.delete/);
+    }
+
     $p->{'entry'} = $s2entry;
     LJ::run_hook('notify_event_displayed', $entry);
 

Modified: trunk/htdocs/talkread.bml
===================================================================
--- trunk/htdocs/talkread.bml	2011-02-04 10:07:24 UTC (rev 18215)
+++ trunk/htdocs/talkread.bml	2011-02-04 10:35:40 UTC (rev 18216)
@@ -1,7 +1,6 @@
 <?page
 body<=
 <?_code
-
     use strict;
     use vars qw($r_head $r_title %GET %ML $r_bodyopts);
 
@@ -222,6 +221,17 @@
             js/quickreply.js
         ));
     }
+    
+    if($remote) {
+        LJ::need_string(qw/ comment.delete.q
+                            comment.cancel
+                            comment.delete
+                            comment.delete.all
+                            comment.delete.all.sub
+                            comment.ban.user
+                            comment.mark.spam
+                            comment.delete/);
+    }
 
     my $showmultiform = $remote &&
                         ($remote->{'user'} eq $u->{'user'} ||

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