/* * Forum Page */ Namespace.Register("ForumPage") ForumPage.init = function () { highLightMainNavigation("forums"); ForumPage.tempLink = ""; } ForumPage.preview = function(el) { var text = $F(el); updateContent("/forum/preview.htm","forumPreview",{text: text}); } ForumPage.deletePost = function(link) { ForumPage.tempLink = link; showConfirmationPopup("Are you sure you wish to delete this post?", ForumPage.onDeletePostYes, null); } ForumPage.onDeletePostYes = function() { blueOverlayVisible(true); ajaxNoContent("post", ForumPage.tempLink, "delete_post", { }, ForumPage.onDeletePost); } ForumPage.onDeletePost = function() { window.location.reload(); } ForumPage.deleteTopic = function(link) { ForumPage.tempLink = link; showConfirmationPopup("Are you sure you wish to delete this entire topic?", ForumPage.onDeleteTopicYes, null); } ForumPage.onDeleteTopicYes = function() { blueOverlayVisible(true); ajaxNoContent("post", ForumPage.tempLink, "delete_topic", { }, ForumPage.onDeleteTopic); } ForumPage.onDeleteTopic = function() { window.location.reload(); }