Controller: attachmentsListController Methods: createAttachmentaddAttachment(Object form_data): Create a new attachment object showNewAttachment(): Show DOM element for new attachment creation cancelNewAttachment(): Cancels the new attachment creation mode Add an attachment to the current object. It returns a deferred object deleteAttachment(deleteIssueAttachment(Object attachment): Deletes the specified attachment from the current issue object in local cache & db and returns a deferred object downloadIssueAttachment(Object attachment): Download the specified attachment hideAttachmentPreview(): Hides the attachment preview of DOM object(div) addAttachment(Object form_data): Add an attachment to the current object. It returns a deferred object findAll(String object_id): Loads object attachments from local db or make AJAX request to server and returns a deferred object
Here is a list of Ember action helper methods which could be called from template or with sendAction() method createAttachment(): Create a new attachment object showNewAttachment(): Show DOM element for new attachment creation cancelNewAttachment(): Cancels the new attachment creation mode deleteIssueAttachmentdeleteAttachment(Object attachment): Deletes the specified attachment from the current object in local cache & db and returns a deferred objectfindAll(String object_id): Loads object attachments from local db or make AJAX request to server and returns a deferred objectissue object downloadIssueAttachment(Object attachment): Download the specified attachment hideAttachmentPreview(): Hides the attachment preview of DOM object(div) |