Class: DraftsView

DraftsView()

A view that lists the local submission drafts for this user

Constructor

new DraftsView()

Source:

Extends

  • Backbone.View

Methods

createDownloader()

Creates a function for use as an event handler in insertDownloadables that creates a closure around the content (text) and filename and causes the browser to download the draft when clicked
Source:

friendlyTimeDiff(datetime:)

Formats a time difference, in milliseconds, in a human-friendly way
Parameters:
Name Type Description
datetime: string A datetime as a string which needs to be parsed before working with
Source:

insertDownloadables()

Attach a click handler for download buttons that triggers a draft or all drafts to be downloaded
Source: