Class: DiscussionViewer

DiscussionViewer()

new DiscussionViewer()

(view) Shows discussion thread and handles replies
Source:

Methods

(static) addComment(comment, commentText, nickname)

adds another comment
Parameters:
Name Type Description
comment object
commentText string
nickname string
Source:

(static) finishDiscussion()

finishes the discussion area after last comment
Source:

(static) getReplyCommentId() → {int|undefined}

returns the id of the parent comment the user is replying to
Source:
Returns:
Type
int | undefined

(static) getReplyMessage() → {String}

returns the users message from the reply form
Source:
Returns:
Type
String

(static) getReplyNickname() → {String}

returns the users nickname (if any) from the reply form
Source:
Returns:
Type
String

(static) handleNotification(alertType) → {bool|jQuery}

custom handler for displaying notifications in own status message area
Parameters:
Name Type Description
alertType string
Source:
Returns:
Type
bool | jQuery

(static) highlightComment(commentId, fadeOut)

highlights a specific comment and scrolls to it if necessary
Parameters:
Name Type Description
commentId string
fadeOut bool whether to fade out the comment
Source:

(static) init()

initiate preloads jQuery elements
Source:

(static) prepareNewDiscussion()

removes the old discussion and prepares everything for creating a new one.
Source: