ljcmt => cmt

        Patch by denise. 

diffs (97 lines):

diff -r 0ca2d89af60b -r 92cff6a4bafc cgi-bin/talklib.pl
--- a/cgi-bin/talklib.pl        Sat Aug 22 13:17:56 2009 +0800
+++ b/cgi-bin/talklib.pl        Sat Aug 22 17:50:15 2009 +0000
@@ -2113,12 +2113,12 @@ sub get_replycount {
 
 sub comment_htmlid {
     my $id = shift or return '';
-    return "ljcmt$id";
+    return "cmt$id";
 }
 
 sub comment_anchor {
     my $id = shift or return '';
-    return "#ljcmt$id";
+    return "#cmt$id";
 }
 
 package LJ::Talk::Post;
diff -r 0ca2d89af60b -r 92cff6a4bafc htdocs/js/commentmanage.js
--- a/htdocs/js/commentmanage.js        Sat Aug 22 13:17:56 2009 +0800
+++ b/htdocs/js/commentmanage.js        Sat Aug 22 17:50:15 2009 +0000
@@ -255,7 +255,7 @@ function deleteComment (ditemid) {
 
     killPopup();
 
-    var todel = document.getElementById("ljcmt" + ditemid);
+    var todel = document.getElementById("cmt" + ditemid);
 
     var col = 0;
     var pulse = 0;
@@ -319,7 +319,7 @@ function deleteComment (ditemid) {
 }
 
 function removeComment (ditemid, killChildren) {
-    var todel = document.getElementById("ljcmt" + ditemid);
+    var todel = document.getElementById("cmt" + ditemid);
     if (todel) {
         todel.style.display = 'none';
 
@@ -387,7 +387,7 @@ function createDeleteFunction (ae, dItem
 
             de = document.createElement("div");
             de.style.textAlign = "left";
-            de.className = 'ljcmtmanage';
+            de.className = 'cmtmanage';
             de.style.height = "10px";
             de.style.overflow = "hidden";
             de.style.position = "absolute";
@@ -615,7 +615,7 @@ function setupAjax () {
             if (! reMatch) return true;
 
             var dItemid = reMatch[1];
-            var todel = document.getElementById("ljcmt" + dItemid);
+            var todel = document.getElementById("cmt" + dItemid);
             if (! todel) return true;
 
             if (LJ_cmtinfo && LJ_cmtinfo.disableInlineDelete) continue;
@@ -637,5 +637,5 @@ if (document.getElementById && getXTR())
 if (document.getElementById && getXTR()) {
        regEvent(window, "load", setupAjax);
        regEvent(document, "click", docClicked);
-        document.write("<style> div.ljcmtmanage { color: #000; background: 
#e0e0e0; border: 2px solid #000; padding: 3px; }</style>");
+        document.write("<style> div.cmtmanage { color: #000; background: 
#e0e0e0; border: 2px solid #000; padding: 3px; }</style>");
 }
diff -r 0ca2d89af60b -r 92cff6a4bafc htdocs/js/thread_expander.js
--- a/htdocs/js/thread_expander.js      Sat Aug 22 13:17:56 2009 +0800
+++ b/htdocs/js/thread_expander.js      Sat Aug 22 17:50:15 2009 +0000
@@ -22,7 +22,7 @@ Expander.prototype.set = function(option
 }
 
 Expander.prototype.getCanvas = function(id,context){
-    return context.document.getElementById('ljcmt'+id); 
+    return context.document.getElementById('cmt'+id); 
 }
 
 Expander.prototype.parseLJ_cmtinfo = function(context,callback){
diff -r 0ca2d89af60b -r 92cff6a4bafc htdocs/tools/recent_comments.bml
--- a/htdocs/tools/recent_comments.bml  Sat Aug 22 13:17:56 2009 +0800
+++ b/htdocs/tools/recent_comments.bml  Sat Aug 22 17:50:15 2009 +0000
@@ -157,7 +157,7 @@ body<=
         my $ljcmt = $LJ_cmtinfo{$talkid} = {};
         $ljcmt->{u} = $pu ? $pu->{user} : "";
 
-        $ret .= "<tr valign='top' id='ljcmtbar$talkid'><td style='width: 
150px; line-height: 1.5em; border-top: 1px solid #999; background-color: 
$bgcolor' id='cmtbar$talkid'>";
+        $ret .= "<tr valign='top' id='cmtbar$talkid'><td style='width: 150px; 
line-height: 1.5em; border-top: 1px solid #999; background-color: $bgcolor' 
id='cmtbar$talkid'>";
          $ret .= (LJ::isu($pu) ? LJ::ljuser($pu) : $ML{ '.anonymous' }) . "<br 
/>";
 
         $ret .= LJ::ago_text($now - $r->{datepostunix}) . "<br />";
@@ -282,7 +282,7 @@ body<=
     $ret .= "<script>var LJ_cmtinfo = " . LJ::js_dumper(\%LJ_cmtinfo) . ";\n" .
         "function userhook_screen_comment_ARG (talkid) { 
setStyle('cmtbar'+talkid, 'background', $js_screen_color); 
setInner('state'+talkid, 'Screened'); }\n".
         "function userhook_unscreen_comment_ARG (talkid) { 
setStyle('cmtbar'+talkid, 'background', 'transparent'); 
setInner('state'+talkid, ''); }\n".
-        "function userhook_delete_comment_ARG (talkid) { 
hideElement('ljcmtbar'+talkid); }\n".
+        "function userhook_delete_comment_ARG (talkid) { 
hideElement('cmtbar'+talkid); }\n".
         "var Site; if (!Site) Site = new Object(); Site.imgprefix = 
\"$LJ::IMGPREFIX\";\n".
         "</script>";
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to