public static ResponseCollection PrependComment( this ResponseCollection res, Comments comments, Versions.VerTypes verType) { return(Forms.Data("Comments").Trim() != string.Empty ? res .Val("#Comments", string.Empty) .Focus("#Comments") .Prepend("#CommentList", new HtmlBuilder() .Comment(comment: comments[0], verType: verType)) : res); }
public static ResponseCollection PrependComment( this ResponseCollection res, SiteSettings ss, Column column, Comments comments, Versions.VerTypes verType) { return(Forms.Data("Comments").Trim() != string.Empty ? res .Val("#Comments", string.Empty) .Focus("#Comments") .Prepend("#CommentList", new HtmlBuilder() .Comment( ss: ss, column: column, comment: comments[0], readOnly: false)) : res); }