Methods
(static) createPasteNotification(url, deleteUrl)
creates a notification after a successfull paste upload
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
deleteUrl |
string |
- Source:
(static) extractUrl(response)
extracts URLs from given string
if at least one is found, it disables the shortener button and
replaces the paste URL
Parameters:
Name | Type | Description |
---|---|---|
response |
string |
- Source:
(static) hideMessages()
hides the remaining time and successful upload notification
- Source:
(static) init()
init status manager
preloads jQuery elements
- Source:
(static) pasteLinkClick()
Forces opening the paste if the link does not do this automatically.
This is necessary as browsers will not reload the page when it is
already loaded (which is fake as it is set via history.pushState()).
- Source:
(private, static) sendToShortener()
forward to URL shortener
- Source:
(static) showRemainingTime(paste)
shows the remaining time
Parameters:
Name | Type | Description |
---|---|---|
paste |
Paste |
- Source: