Class Alfresco.module.CreateSite
Extends Alfresco.component.Base
CreateSite module
A dialog for creating sites
A dialog for creating sites
Defined in: create-site.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.module.CreateSite(htmlId)
CreateSite constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Short name field
|
- Fields borrowed from class Alfresco.component.Base:
- modules, options, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
|
|
|
onCreateSiteFailure(response)
Called when a site failed to be created.
|
|
|
onCreateSiteSuccess(response)
Called when a site has been succesfully created on the server.
|
|
|
onTemplateLoaded(response)
Called when the CreateSite html template has been returned from the server.
|
|
|
onVisibilityChange(type, el)
Called when user clicks on the isPublic checkbox.
|
|
|
safeURL(text)
Converts a user-entered string into a "readable" safe URL by stripping characters
|
|
|
show()
Shows the CreteSite dialog to the user.
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.module.CreateSite(htmlId)
CreateSite constructor.
- Parameters:
- {string} htmlId
- A unique id for this component
- Returns:
- {Alfresco.CreateSite} The new DocumentList instance
Field Detail
shortNameEdited
Short name field
Method Detail
onCancelButtonClick(type, args)
Called when user clicks on the cancel button.
Closes the CreateSite panel.
Closes the CreateSite panel.
- Parameters:
- type
- args
onCreateSiteFailure(response)
Called when a site failed to be created.
- Parameters:
- response
onCreateSiteSuccess(response)
Called when a site has been succesfully created on the server.
Redirects the user to the new site.
Redirects the user to the new site.
- Parameters:
- response
onTemplateLoaded(response)
Called when the CreateSite html template has been returned from the server.
Creates the YUI gui objects such as buttons and a panel and shows it.
Creates the YUI gui objects such as buttons and a panel and shows it.
- Parameters:
- {object} response
- a Alfresco.util.Ajax.request response object
onVisibilityChange(type, el)
Called when user clicks on the isPublic checkbox.
- Parameters:
- type
- el
{string}
safeURL(text)
Converts a user-entered string into a "readable" safe URL by stripping characters
- Parameters:
- {string} text
- The string to convert
- Returns:
- {string} Safe and readable URL
show()
Shows the CreteSite dialog to the user.