Class: MBPortlet

(abstract) MBPortlet()

MBPortlet handles the actions of replying or editing a message board.

Constructor

(abstract) new MBPortlet()

Source:

Extends

  • PortletBase

Members

(non-null) constants :Object

Portlet's constants
Type:
  • Object
Source:

currentAction :String

The current action (CMD.ADD, CMD.UPDATE, ...) for the message
Type:
  • String
Source:

getAttachmentsURL :String

The URL to get deleted attachments from
Type:
  • String
Source:

replyToMessageId :String

The id of the message that you are replying to
Type:
  • String
Source:

viewTrashAttachmentsURL :String

The URL to edit deleted attachments
Type:
  • String
Source:

Methods

attached()

Source:

created()

Source:

detached()

Source:

(protected) openAdvancedReply_()

Redirects to the advanced reply page keeping the current message.
Source:

(protected) publish_()

Publish the message.
Source:

(protected) removeAttachment_(event)

Sends a request to remove the selected attachment.
Parameters:
Name Type Description
event Event The click event that triggered the remove action
Source:

(protected) save_()

Save the message. Before doing that, checks if there are images that have not been uploaded yet. In that case, it removes them after asking confirmation to the user.
Source:

(protected) saveDraft_()

Saves the message as a draft.
Source:

(protected) submitForm_()

Submits the message.
Source:

(protected) updateMultipleMBMessageAttachments_()

Updates the attachments to include the checked attachments.
Source:

(protected) updateRemovedAttachments_()

Sends a request to retrieve the deleted attachments
Source: