Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r18482: LJSUP-7848: mode=js (spam bubble)

Committer: szhirkov
LJSUP-7848: mode=js (spam bubble)
U   trunk/htdocs/js/commentmanage.js
Modified: trunk/htdocs/js/commentmanage.js
===================================================================
--- trunk/htdocs/js/commentmanage.js	2011-03-05 08:38:33 UTC (rev 18481)
+++ trunk/htdocs/js/commentmanage.js	2011-03-05 08:48:36 UTC (rev 18482)
@@ -432,7 +432,7 @@
 			createPopup(inHTML.join(' '), ae, e, 'deletePopup' + dItemid);
 		}
 		Event.stop(e);
-	}
+	};
 }
 
 function poofAt (pos) {
@@ -530,13 +530,12 @@
 		
 		function sendModerateRequest() {
 			var	bmlName = { 'screen': 'talkscreen', 'spam': 'delcomment' }[action],
-				postUrl = control.href.replace(new RegExp('.+' + bmlName + '\.bml'), LiveJournal.getAjaxUrl(bmlName)) + '&jsmode=1',
+				postUrl = control.href.replace(new RegExp('.+' + bmlName + '\.bml'), LiveJournal.getAjaxUrl(bmlName)) + '&mode=js',
 				postParams = { 'confirm': 'Y', lj_form_auth: LJ_cmtinfo.form_auth };
 				
 			hourglass = jQuery(e).hourglass()[0];
 			
 			if (action == 'spam') {
-				postUrl = (!isS1) ? postUrl.replace('id', 'talkid') : postUrl;
 				postParams.spam = 1;
 				postParams.delauthor = 1;
 			}

Tags: aralot, js, 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