Blogs

Comments (0) ‘, ‘info’); this.disable(form, true); dojo.xhrPost({ url: form.action, form: form, handleAs: ‘json-comment-optional’, load: function (data, ioArgs) { WeblogEntryActionForms.clearMessage(form.name+ ‘_messages’); if(data.success) { WeblogEntryActionForms.close(form); var gm = dojo.byId(‘actionforms_globalmsgs’); gm.style.display=’none’; lconn.blogs.utils.clearMessage(gm.id); var t=WeblogEntryActionForms.type(form); var msgText; if(t==’notification’ || t==’notification_ex’) { msgText = ‘The notification has been sent.’; } if(t==’flagInappropriateEntry’) { msgText= ‘The blog entry has been flagged and submitted for review.’; } if(t==’deleteEntry’) { msgText= ‘The blog entry has been deleted.’; } lconn.blogs.utils.showMessage(gm.id, msgText, ‘confirm’, true); gm.style.display=”; } else { if(data.error) { if(‘session timeout’ == data.error) { window.__security_nonce = data.nonce; WeblogEntryActionForms.message(form, ‘We were unable to process your request due to a session timeout. Please try again.’, ‘error’); } else { WeblogEntryActionForms.message(form, data.error, ‘error’); } } else { WeblogEntryActionForms.message(form, ‘This function is only available to authenticated users. Please log in first.’, ‘error’); } }…


Link to Full Article: Blogs