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

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

Committer: vvasin
LJSUP-13431: Antispam for edited entries in the communities. Fix old form.
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2012-09-28 13:12:05 UTC (rev 23011)
+++ trunk/htdocs/js/rte.js	2012-09-28 14:20:49 UTC (rev 23012)
@@ -296,4 +296,22 @@
 		}
 	}
 
+	// community antispam check
+	$(function (){
+		// restore entry (if it's on moderation)
+		if (LJ.pageVar('entry_restore')) {
+			LJ.dialogs.confirm( this._ml('antispamConfirmText'), {
+				yes: {
+					text: this._ml('antispamConfirmYes'),
+					action: function () {
+						window.location.href = LJ.pageVar('entry_restore');
+					}
+				},
+				no: {
+					text: this._ml('antispamConfirmNo')
+				}
+			});
+		}
+	});
+
 })(jQuery, this);

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