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);