public static void CommentsConfigure(CommentsList commentList) { commentList.DisableCtrlEnter = (SetupInfo.WorkMode == WorkMode.Promo); commentList.PID = CommonLinkUtility.GetProductID().ToString(); commentList.InactiveMessage = Resources.Resource.CommentRemovedMessage; commentList.UserProfileUrlResolver = user => CommonLinkUtility.GetUserProfile(user); commentList.UserPageLinkWithParam = VirtualPathUtility.ToAbsolute("~/userprofile.aspx") + "?" + CommonLinkUtility.GetProductParamsPair(new Guid(commentList.PID)) + "&uid"; commentList.AddCommentLink = Resources.Resource.AddNewCommentButton; commentList.SaveButton = Resources.Resource.PublishButton; commentList.BehaviorID = "_commentObj"; commentList.PreviewButton = Resources.Resource.PreviewButton; commentList.HidePrevuewButton = Resources.Resource.CloseButton; commentList.CancelButton = Resources.Resource.CancelButton; commentList.InactiveMessage = Resources.Resource.CommentWasRemoved; commentList.RemoveCommentLink = Resources.Resource.DeleteButton; commentList.ResponseCommentLink = Resources.Resource.AnswerButton; commentList.EditCommentLink = Resources.Resource.EditButton; commentList.FCKBasePath = FCKEditorBasePath; commentList.CommentsTitle = Resources.Resource.Comments; commentList.ConfirmRemoveCommentMessage = Resources.Resource.ConfirmRemoveCommentMessage; commentList.AdditionalSubmitText = "<span class=\"textMediumDescribe\" style=\"margin-left:5px;\">" + Resources.Resource.OrPress + "</span> <span class=\"textBase\">" + Resources.Resource.CtrlEnterKeys + "</span>"; commentList.FCKEditorAreaCss = WebSkin.GetUserSkin().BaseCSSFileAbsoluteWebPath; commentList.LoaderImage = WebImageSupplier.GetAbsoluteWebPath("ajax_progress_loader.gif"); commentList.CommentSendingMsg = Resources.Resource.PleaseWaitMessage; commentList.OnEditedCommentJS = "FCKCommentsController.EditCommentHandler"; commentList.OnCanceledCommentJS = "FCKCommentsController.CancelCommentHandler"; commentList.OnRemovedCommentJS = "FCKCommentsController.RemoveCommentHandler"; try { AjaxPro.Utility.RegisterTypeForAjax(typeof(CommonControlsConfigurer)); } catch { } }
public static void CommentsConfigure(CommentsList commentList) { commentList.PID = CommonLinkUtility.GetProductID().ToString(); commentList.InactiveMessage = Resources.Resource.CommentRemovedMessage; commentList.UserProfileUrlResolver = user => CommonLinkUtility.GetUserProfile(user); commentList.AddCommentLink = Resources.Resource.AddNewCommentButton; commentList.CancelCommentLink = Resources.Resource.CancelCommentButton; commentList.SaveButton = Resources.Resource.PublishButton; commentList.BehaviorID = "_commentObj"; commentList.PreviewButton = Resources.Resource.PreviewButton; commentList.HidePrevuewButton = Resources.Resource.CloseButton; commentList.CancelButton = Resources.Resource.CancelButton; commentList.InactiveMessage = Resources.Resource.CommentWasRemoved; commentList.RemoveCommentLink = Resources.Resource.DeleteButton; commentList.ResponseCommentLink = Resources.Resource.AnswerButton; commentList.EditCommentLink = Resources.Resource.EditButton; commentList.FCKBasePath = FCKEditorBasePath; commentList.CommentsTitle = Resources.Resource.Comments; commentList.ConfirmRemoveCommentMessage = Resources.Resource.ConfirmRemoveCommentMessage; commentList.AdditionalSubmitText = "<span class=\"text-medium-describe\" style=\"margin-left:5px;\">" + Resources.Resource.OrPress + "</span> <span class=\"text-base\">" + Resources.Resource.CtrlEnterKeys + "</span>"; commentList.FCKEditorAreaCss = WebSkin.BaseCSSFileAbsoluteWebPath; commentList.OnEditedCommentJS = "FCKCommentsController.EditCommentHandler"; commentList.OnCanceledCommentJS = "FCKCommentsController.CancelCommentHandler"; commentList.OnRemovedCommentJS = "FCKCommentsController.RemoveCommentHandler"; try { AjaxPro.Utility.RegisterTypeForAjax(typeof(CommonControlsConfigurer)); } catch { } }