Class: TopNav

TopNav(window, document)

new TopNav(window, document)

Manage top (navigation) bar
Parameters:
Name Type Description
window object
document object
Source:

Methods

(static) collapseBar()

collapses the navigation bar, only if expanded
Source:

(static) getCustomAttachment() → {jQuery}

returns the element where custom attachments can be placed Used by AttachmentViewer when an attachment is cloned here.
Source:
Returns:
Type
jQuery

(static) getExpiration() → {bool}

returns the state of the burn after reading checkbox
Source:
Returns:
Type
bool

(static) getExpiration() → {int}

returns the currently set expiration time
Source:
Returns:
Type
int

(static) getFileList() → {FileList|null}

returns the currently selected file(s)
Source:
Returns:
Type
FileList | null

(static) getOpenDiscussion() → {bool}

returns the state of the discussion checkbox
Source:
Returns:
Type
bool

(static) getPassword() → {string}

returns the entered password
Source:
Returns:
Type
string

(static) hideAllButtons()

Hides all elements belonging to existing pastes
Source:

(static) hideCloneButton()

only hides the clone button
Source:

(static) hideCreateButtons()

shows all elements needed when creating a new paste
Source:

(static) hideFileSelector()

hides the file selector in attachment
Source:

(static) hideRawButton()

only hides the raw text button
Source:

(static) hideRetryButton()

hides the "retry" button
Source:

(static) hideViewButtons()

Hides all navigation elements for viewing an existing paste
Source:

(static) init()

init navigation manager preloads jQuery elements
Source:

(static) setRetryCallback(callback)

Set a function to call when the retry button is clicked.
Parameters:
Name Type Description
callback function
Source:

(static) showCreateButtons()

shows all elements needed when creating a new paste
Source:

(static) showCustomAttachment()

shows the custom attachment
Source:

(static) showNewPasteButton()

only shows the "new paste" button
Source:

(static) showRetryButton()

only shows the "retry" button
Source:

(static) showViewButtons()

Shows all navigation elements for viewing an existing paste
Source: