private void ConfigureComments(CommentsList commentList)
        {
            CommonControlsConfigurer.CommentsConfigure(commentList);

            // add comments permission check
            commentList.IsShowAddCommentBtn = BookmarkingPermissionsCheck.PermissionCheckCreateComment();

            commentList.BehaviorID    = "commentsObj";
            commentList.ModuleName    = "bookmarks";
            commentList.FckDomainName = "bookmarking_comments";
            commentList.TotalCount    = BookmarkComments.Count;
            commentList.ShowCaption   = false;
            commentList.ObjectID      = BookmarkID.ToString();
        }
Пример #2
0
        private void ConfigureComments(CommentsList commentList)
        {
            CommonControlsConfigurer.CommentsConfigure(commentList);

            // add comments permission check
            commentList.IsShowAddCommentBtn = BookmarkingPermissionsCheck.PermissionCheckCreateComment();
            commentList.CommentsCountTitle  = BookmarkComments.Count.ToString();
            commentList.Simple     = false;
            commentList.BehaviorID = "commentsObj";
            commentList.JavaScriptAddCommentFunctionName        = "CommentsUserControl.AddComment";
            commentList.JavaScriptLoadBBcodeCommentFunctionName = "CommentsUserControl.LoadCommentBBCode";
            commentList.JavaScriptPreviewCommentFunctionName    = "CommentsUserControl.GetPreview";
            commentList.JavaScriptRemoveCommentFunctionName     = "CommentsUserControl.RemoveComment";
            commentList.JavaScriptUpdateCommentFunctionName     = "CommentsUserControl.UpdateComment";
            commentList.FckDomainName = "bookmarking_comments";
            commentList.TotalCount    = BookmarkComments.Count;
            commentList.ShowCaption   = false;
            commentList.ObjectID      = BookmarkID.ToString();
        }